summaryrefslogtreecommitdiff
path: root/tests/unit/core
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-04-25 19:01:56 +0200
committerSébastien Helleu <flashcode@flashtux.org>2024-04-26 08:53:22 +0200
commit0b2d9bcb9b04b7e7ac3c2f626422392383575d2b (patch)
tree177e487efc30717415402ba969b246de3f88b28d /tests/unit/core
parent1ad0b4b6699df50e0cc6a3c5d62ce3ac1f77440c (diff)
downloadweechat-0b2d9bcb9b04b7e7ac3c2f626422392383575d2b.zip
plugins: remove check of NULL pointers before calling weechat_hashtable_free() (issue #865)
Diffstat (limited to 'tests/unit/core')
-rw-r--r--tests/unit/core/test-core-hashtable.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unit/core/test-core-hashtable.cpp b/tests/unit/core/test-core-hashtable.cpp
index 2e8e92a1c..cc6ff0f8a 100644
--- a/tests/unit/core/test-core-hashtable.cpp
+++ b/tests/unit/core/test-core-hashtable.cpp
@@ -177,6 +177,9 @@ TEST(CoreHashtable, SetGetRemove)
unsigned long long hash;
int i;
+ /* free hashtable with NULL pointer */
+ hashtable_free (NULL);
+
hashtable = hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING,