From 4d0566b5d18dbb35d343633f94dd6ee255fd01d7 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 15 Jun 2014 20:39:50 +0100 Subject: [PATCH] Fixed memleak in _available_handler --- src/xmpp/presence.c | 1 + 1 file changed, 1 insertion(+) 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);