about summary refs log tree commit diff stats
path: root/src/xmpp/roster_list.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-07-10 12:06:13 +0200
committerMichael Vetter <jubalh@iodoru.org>2019-07-10 12:08:09 +0200
commita8b3de7016dddb1032988ee801eb621a311b0a0f (patch)
tree591f77a61b34e07690175124d4d0be1b87122bce /src/xmpp/roster_list.c
parent38edc1c3253a2e8100426b3100045a5326a12088 (diff)
downloadprofani-tty-a8b3de7016dddb1032988ee801eb621a311b0a0f.tar.gz
Fix double free in roster_process_pending_presence
This is taken care of now in the destructor _pendingPresence_free().
Diffstat (limited to 'src/xmpp/roster_list.c')
-rw-r--r--src/xmpp/roster_list.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/xmpp/roster_list.c b/src/xmpp/roster_list.c
index 920691d6..88c3ec0f 100644
--- a/src/xmpp/roster_list.c
+++ b/src/xmpp/roster_list.c
@@ -706,7 +706,6 @@ roster_process_pending_presence(void)
     for (iter = roster_pending_presence; iter != NULL; iter = iter->next) {
         ProfPendingPresence *presence = iter->data;
         roster_update_presence(presence->barejid, presence->resource, presence->last_activity);
-        free(presence->barejid);
         /* seems like resource isn't free on the calling side */
         if (presence->last_activity) {
             g_date_time_unref(presence->last_activity);