about summary refs log tree commit diff stats
path: root/src/xmpp/roster.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmpp/roster.c')
-rw-r--r--src/xmpp/roster.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xmpp/roster.c b/src/xmpp/roster.c
index 1e943fb6..6de370aa 100644
--- a/src/xmpp/roster.c
+++ b/src/xmpp/roster.c
@@ -285,6 +285,8 @@ _roster_set_handler(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza,
         }
     }
 
+    g_free(barejid_lower);
+
     return 1;
 }
 
@@ -324,6 +326,7 @@ _roster_result_handler(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza,
                 log_warning("Attempt to add contact twice: %s", barejid_lower);
             }
 
+            g_free(barejid_lower);
             item = xmpp_stanza_get_next(item);
         }