mirror of
https://github.com/irssi/irssi.git
synced 2026-08-21 17:42:49 +02: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
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue