From b7723db1fcdb310c0c3a5474707c8b934455158e Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Mon, 21 Dec 2020 16:52:21 +0100 Subject: [PATCH] Fix memleak in _mam_request() --- src/mode/mam.c | 1 + 1 file changed, 1 insertion(+) 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){