From 3eed74a75c86758c519cfba60a6ba83dcb1eee1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Thu, 25 Apr 2024 00:19:31 +0200 Subject: plugins: remove check of NULL pointers before calling weechat_arraylist_free() (issue #865) --- tests/unit/core/test-core-arraylist.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/unit/core') diff --git a/tests/unit/core/test-core-arraylist.cpp b/tests/unit/core/test-core-arraylist.cpp index dd6d3b369..2f8d1ceb2 100644 --- a/tests/unit/core/test-core-arraylist.cpp +++ b/tests/unit/core/test-core-arraylist.cpp @@ -481,6 +481,9 @@ TEST(CoreArraylist, New) { int initial_size, sorted, allow_duplicates; + /* free arraylist with NULL pointer */ + arraylist_free (NULL); + /* * in order to create an arraylist, initial_size must be >= 0 and a * comparison callback must be given -- cgit v1.2.3