1
0
mirror of https://github.com/irssi/irssi.git synced 2024-10-13 05:03:45 -04:00

Properly free sasl_buffer GString

This commit is contained in:
Joseph Bisch 2019-09-24 21:35:40 -04:00
parent 8a1a96c12c
commit f6cca3de4e

View File

@ -456,7 +456,9 @@ static void sig_destroyed(IRC_SERVER_REC *server)
gslist_free_full(server->cap_queue, (GDestroyNotify) g_free);
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);
server->sasl_buffer = NULL;
/* these are dynamically allocated only if isupport was sent */
g_hash_table_foreach(server->isupport,