about summary refs log tree commit diff stats
path: root/src/xmpp/presence.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-06-15 20:39:50 +0100
committerJames Booth <boothj5@gmail.com>2014-06-15 20:39:50 +0100
commit4d0566b5d18dbb35d343633f94dd6ee255fd01d7 (patch)
treeb94a20cf883ee66785fcfd720fc130ed92eaa7ce /src/xmpp/presence.c
parentd4afcd3258c2d6641ae4323c649fc8ebf007e69a (diff)
downloadprofani-tty-4d0566b5d18dbb35d343633f94dd6ee255fd01d7.tar.gz
Fixed memleak in _available_handler
Diffstat (limited to 'src/xmpp/presence.c')
-rw-r--r--src/xmpp/presence.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xmpp/presence.c b/src/xmpp/presence.c
index 5120e231..d6a2c7f2 100644
--- a/src/xmpp/presence.c
+++ b/src/xmpp/presence.c
@@ -545,6 +545,7 @@ _available_handler(xmpp_conn_t * const conn,
         if (priority_str != NULL) {
             priority = atoi(priority_str);
         }
+        free(priority_str);
     }
 
     resource_presence_t presence = resource_presence_from_string(show_str);