mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Merge pull request #1428 from profanity-im/use-after-free
Fix use-after-free which is introduced in cons_alert()
This commit is contained in:
commit
72ce934b58
@ -2408,7 +2408,7 @@ cons_alert(ProfWin* alert_origin_window)
|
||||
|
||||
GList* item = g_list_find_custom(alert_list, win_name, (GCompareFunc)g_strcmp0);
|
||||
if (!item) {
|
||||
alert_list = g_list_append(alert_list, win_name);
|
||||
alert_list = g_list_append(alert_list, g_strdup(win_name));
|
||||
}
|
||||
|
||||
free(win_name);
|
||||
|
Loading…
Reference in New Issue
Block a user