From 860dd22bc5d91ced4b19f39e137e06a9324b9ff1 Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Thu, 11 May 2023 10:48:08 +0200 Subject: [PATCH] Fix potential double-free introduced in 8d3c1f79ac7cc2b0830f0afed48dc1fb9008ab0e Signed-off-by: Steffen Jaeckel --- src/xmpp/iq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xmpp/iq.c b/src/xmpp/iq.c index 4f6eea40..eb72178d 100644 --- a/src/xmpp/iq.c +++ b/src/xmpp/iq.c @@ -2761,7 +2761,7 @@ _mam_rsm_id_handler(xmpp_stanza_t* const stanza, void* const userdata) // Convert to iso8601 start_str[strlen(start_str) - 3] = '\0'; } - auto_char char* end_str = NULL; + char* end_str = NULL; if (data->end_datestr) { end_str = strdup(data->end_datestr); // Convert to iso8601