mirror of
https://github.com/profanity-im/profanity.git
synced 2024-09-22 19:45:54 -04:00
Merge pull request #1919 from H3rnand3zzz/patch-1
Fix double free crash
This commit is contained in:
commit
74178806a8
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user