Fixed memory leak in one off handlers.
This commit is contained in:
@@ -112,6 +112,9 @@ void handler_fire_stanza(xmpp_conn_t * const conn,
|
|||||||
prev->next = item->next;
|
prev->next = item->next;
|
||||||
else
|
else
|
||||||
conn->handlers = item->next;
|
conn->handlers = item->next;
|
||||||
|
if (item->ns) xmpp_free(conn->ctx, item->ns);
|
||||||
|
if (item->name) xmpp_free(conn->ctx, item->name);
|
||||||
|
if (item->type) xmpp_free(conn->ctx, item->type);
|
||||||
xmpp_free(conn->ctx, item);
|
xmpp_free(conn->ctx, item);
|
||||||
item = NULL;
|
item = NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user