diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-25 20:20:40 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-26 21:23:39 +0200 |
commit | 9c3eda660df9a41b7ca9a1008178f7edecdb91ae (patch) | |
tree | 2b5e61b222f127521284327da204e46537dd698d /tests/unit | |
parent | 17090ade744b2f2522443435987d7dbd7e9d1b52 (diff) | |
download | weechat-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.cpp | 3 |
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); } /* |