diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-25 00:19:31 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-26 07:37:22 +0200 |
commit | 3eed74a75c86758c519cfba60a6ba83dcb1eee1b (patch) | |
tree | 2b5931050d4973c70a4b5bbd9325120a6b5a58b2 /tests/unit/core | |
parent | e73bff95fa4bcc0902b65263bd47ec8bdc0c1128 (diff) | |
download | weechat-3eed74a75c86758c519cfba60a6ba83dcb1eee1b.zip |
plugins: remove check of NULL pointers before calling weechat_arraylist_free() (issue #865)
Diffstat (limited to 'tests/unit/core')
-rw-r--r-- | tests/unit/core/test-core-arraylist.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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 |