diff --git a/src/mode/mam.c b/src/mode/mam.c index 0881abb..553c420 100644 --- a/src/mode/mam.c +++ b/src/mode/mam.c @@ -119,6 +119,7 @@ static void _mam_request(xmppc_t *xmppc, char* to, bool pretty) { xmpp_id_handler_add(xmppc->conn, _mam_show, id, xmppc); xmpp_send(xmppc->conn,iq); + free(id); } int _mam_show(xmpp_conn_t *const conn, xmpp_stanza_t *const stanza, void *const userdata){