1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 06:16:40 +02:00

core: remove check of NULL pointers before calling free() (issue #865)

This commit is contained in:
Sébastien Helleu
2024-04-25 00:18:30 +02:00
parent b56b34711d
commit e73bff95fa
55 changed files with 394 additions and 802 deletions
+1 -4
View File
@@ -687,10 +687,7 @@ arraylist_free (struct t_arraylist *arraylist)
arraylist->data[i]);
}
}
if (arraylist->data)
free (arraylist->data);
free (arraylist->data);
free (arraylist);
}