diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-25 19:19:43 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-26 08:55:35 +0200 |
commit | 619b40b42ff6474a6cbeb5fe1bdeb306370895f4 (patch) | |
tree | d57c12b56834222a3421f5289e978dd41648e3f0 /tests/unit | |
parent | 409a06982e2f98914433d2fb26a26af478eb756c (diff) | |
download | weechat-619b40b42ff6474a6cbeb5fe1bdeb306370895f4.zip |
core: remove check of NULL pointers before calling string_shared_free() (issue #865)
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/core/test-core-string.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unit/core/test-core-string.cpp b/tests/unit/core/test-core-string.cpp index 580fc64ce..73750c0ab 100644 --- a/tests/unit/core/test-core-string.cpp +++ b/tests/unit/core/test-core-string.cpp @@ -2902,6 +2902,9 @@ TEST(CoreString, Shared) string_shared_free (str3); LONGS_EQUAL(count + 0, string_hashtable_shared->items_count); + + /* test free of NULL */ + string_shared_free (NULL); } /* |