mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-30 03:26:22 +00:00
Fix double free crash
Double free was introduced earlier in a cleanup commit
865a056315
It was reported earlier by me and then by @jubalh https://github.com/profanity-im/profanity/issues/1901
This commit is contained in:
@@ -53,7 +53,6 @@ conf_string_list_add(GKeyFile* keyfile, const char* const group, const char* con
|
|||||||
// item already in list, exit function
|
// item already in list, exit function
|
||||||
if (strcmp(list[i], item) == 0) {
|
if (strcmp(list[i], item) == 0) {
|
||||||
g_list_free_full(glist, g_free);
|
g_list_free_full(glist, g_free);
|
||||||
g_strfreev(list);
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
// add item to our g_list
|
// add item to our g_list
|
||||||
|
|||||||
Reference in New Issue
Block a user