about summary refs log tree commit diff stats
path: root/src/xmpp/iq.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-11-03 20:57:22 +0000
committerJames Booth <boothj5@gmail.com>2014-11-03 20:57:22 +0000
commitc4ab9405f64b4faecde951cb4b575062b30e4f79 (patch)
treeb10d4432bd46e49b237c71405a0049115ba13071 /src/xmpp/iq.c
parentc4412fe82385945a5a056640135e9b53901d563f (diff)
downloadprofani-tty-c4ab9405f64b4faecde951cb4b575062b30e4f79.tar.gz
Fixed leaks in /affiliation and /role
Diffstat (limited to 'src/xmpp/iq.c')
-rw-r--r--src/xmpp/iq.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xmpp/iq.c b/src/xmpp/iq.c
index 89f0c8ed..4717f6e7 100644
--- a/src/xmpp/iq.c
+++ b/src/xmpp/iq.c
@@ -974,6 +974,7 @@ _room_affiliation_list_result_handler(xmpp_conn_t * const conn, xmpp_stanza_t *
 
     handle_room_affiliation_list(from, affiliation, jids);
     free(affiliation);
+    g_slist_free(jids);
 
     return 0;
 }
@@ -1019,6 +1020,7 @@ _room_role_list_result_handler(xmpp_conn_t * const conn, xmpp_stanza_t * const s
 
     handle_room_role_list(from, role, nicks);
     free(role);
+    g_slist_free(nicks);
 
     return 0;
 }