summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-04-25 20:20:40 +0200
committerSébastien Helleu <flashcode@flashtux.org>2024-04-26 21:23:39 +0200
commit9c3eda660df9a41b7ca9a1008178f7edecdb91ae (patch)
tree2b5e61b222f127521284327da204e46537dd698d /tests/unit
parent17090ade744b2f2522443435987d7dbd7e9d1b52 (diff)
downloadweechat-9c3eda660df9a41b7ca9a1008178f7edecdb91ae.zip
relay: remove check of NULL pointers before calling relay_websocket_deflate_free() (issue #865)
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/plugins/relay/test-relay-websocket.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unit/plugins/relay/test-relay-websocket.cpp b/tests/unit/plugins/relay/test-relay-websocket.cpp
index 230d875db..38799c059 100644
--- a/tests/unit/plugins/relay/test-relay-websocket.cpp
+++ b/tests/unit/plugins/relay/test-relay-websocket.cpp
@@ -84,6 +84,9 @@ TEST(RelayWebsocket, DeflateAllocFree)
POINTERS_EQUAL(NULL, ws_deflate->strm_inflate);
relay_websocket_deflate_free (ws_deflate);
+
+ /* test free of NULL websocket deflate */
+ relay_websocket_deflate_free (NULL);
}
/*