mirror of
https://github.com/weechat/weechat.git
synced 2026-07-09 19:23:13 +02:00
core: callback_free_key shouldn't point to already free'd value
This commit is contained in:
committed by
Sébastien Helleu
parent
4faa227a2d
commit
62d891aea9
@@ -2815,12 +2815,10 @@ string_shared_keycmp (struct t_hashtable *hashtable,
|
||||
*/
|
||||
|
||||
void
|
||||
string_shared_free_key (struct t_hashtable *hashtable,
|
||||
void *key, const void *value)
|
||||
string_shared_free_key (struct t_hashtable *hashtable, void *key)
|
||||
{
|
||||
/* make C compiler happy */
|
||||
(void) hashtable;
|
||||
(void) value;
|
||||
|
||||
free (key);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user