about summary refs log tree commit diff stats
path: root/src/xmpp
diff options
context:
space:
mode:
authorSteffen Jaeckel <jaeckel-floss@eyet-services.de>2023-05-11 10:48:08 +0200
committerMichael Vetter <jubalh@iodoru.org>2023-05-12 08:39:16 +0200
commit860dd22bc5d91ced4b19f39e137e06a9324b9ff1 (patch)
tree8d7c55ed60a673da1f82ed5299da29174db83c69 /src/xmpp
parentf7c6f38e1b44b05b24d81145a804462931e2b3f0 (diff)
downloadprofani-tty-860dd22bc5d91ced4b19f39e137e06a9324b9ff1.tar.gz
Fix potential double-free
introduced in 8d3c1f79ac7cc2b0830f0afed48dc1fb9008ab0e

Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/iq.c2
1 files changed, 1 insertions, 1 deletions
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