summaryrefslogtreecommitdiff
path: root/tests/unit/core/test-core-list.cpp
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-04-25 19:31:34 +0200
committerSébastien Helleu <flashcode@flashtux.org>2024-04-26 21:06:47 +0200
commita59fa70a948eaa93d0708711714bb5cc724451f9 (patch)
treedc0306f802451716d084dd0b30c088b0e356d064 /tests/unit/core/test-core-list.cpp
parentac7cc2576328dc4ee4247544d87607a21cbd8fa9 (diff)
downloadweechat-a59fa70a948eaa93d0708711714bb5cc724451f9.zip
irc: remove check of NULL pointers before calling weechat_list_free() (issue #865)
Diffstat (limited to 'tests/unit/core/test-core-list.cpp')
-rw-r--r--tests/unit/core/test-core-list.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unit/core/test-core-list.cpp b/tests/unit/core/test-core-list.cpp
index 91f9031dd..69c79c557 100644
--- a/tests/unit/core/test-core-list.cpp
+++ b/tests/unit/core/test-core-list.cpp
@@ -142,6 +142,9 @@ TEST(CoreList, Add)
/* free list */
weelist_free (list);
+
+ /* test free of NULL list */
+ weelist_free (NULL);
}
/*