1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Fix potential double-free

introduced in 8d3c1f79ac

Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
This commit is contained in:
Steffen Jaeckel 2023-05-11 10:48:08 +02:00 committed by Michael Vetter
parent f7c6f38e1b
commit 860dd22bc5

View File

@ -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