From 76aee1625c4ab7b020ec86a3054cbbab0b7fd887 Mon Sep 17 00:00:00 2001 From: John Hernandez <129467592+H3rnand3zzz@users.noreply.github.com> Date: Fri, 10 Nov 2023 12:39:26 +0100 Subject: [PATCH] Fix double free crash Double free was introduced earlier in a cleanup commit 865a056315b322be847964119d49967e0af9e413 It was reported earlier by me and then by @jubalh https://github.com/profanity-im/profanity/issues/1901 --- src/config/conflists.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/config/conflists.c b/src/config/conflists.c index 7f4e5762..1d0cb539 100644 --- a/src/config/conflists.c +++ b/src/config/conflists.c @@ -53,7 +53,6 @@ conf_string_list_add(GKeyFile* keyfile, const char* const group, const char* con // item already in list, exit function if (strcmp(list[i], item) == 0) { g_list_free_full(glist, g_free); - g_strfreev(list); return FALSE; } // add item to our g_list