mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Merge pull request #1128 from josephbisch/fix-sasl-buffer-free
Properly free sasl_buffer GString Credits to oss-fuzz
This commit is contained in:
commit
4cc286634a
@ -456,7 +456,9 @@ static void sig_destroyed(IRC_SERVER_REC *server)
|
|||||||
gslist_free_full(server->cap_queue, (GDestroyNotify) g_free);
|
gslist_free_full(server->cap_queue, (GDestroyNotify) g_free);
|
||||||
server->cap_queue = NULL;
|
server->cap_queue = NULL;
|
||||||
|
|
||||||
g_free_and_null(server->sasl_buffer);
|
/* was g_free_and_null, but can't use on a GString */
|
||||||
|
g_string_free(server->sasl_buffer, TRUE);
|
||||||
|
server->sasl_buffer = NULL;
|
||||||
|
|
||||||
/* these are dynamically allocated only if isupport was sent */
|
/* these are dynamically allocated only if isupport was sent */
|
||||||
g_hash_table_foreach(server->isupport,
|
g_hash_table_foreach(server->isupport,
|
||||||
|
Loading…
Reference in New Issue
Block a user