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:
@@ -687,10 +687,7 @@ arraylist_free (struct t_arraylist *arraylist)
|
||||
arraylist->data[i]);
|
||||
}
|
||||
}
|
||||
|
||||
if (arraylist->data)
|
||||
free (arraylist->data);
|
||||
|
||||
free (arraylist->data);
|
||||
free (arraylist);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user