diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-25 19:59:56 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-26 21:22:49 +0200 |
commit | ba97a395657ab2438965f32eed788479ed48ff8f (patch) | |
tree | b294a07830f79fec95eafc87a585c3539bece72e /tests/unit/plugins/relay | |
parent | 42cba254532074127bc3e99a9af13cab64143f3d (diff) | |
download | weechat-ba97a395657ab2438965f32eed788479ed48ff8f.zip |
relay: remove check of NULL pointers before calling relay_http_response_free() (issue #865)
Diffstat (limited to 'tests/unit/plugins/relay')
-rw-r--r-- | tests/unit/plugins/relay/test-relay-http.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unit/plugins/relay/test-relay-http.cpp b/tests/unit/plugins/relay/test-relay-http.cpp index 17254a051..7e1831b19 100644 --- a/tests/unit/plugins/relay/test-relay-http.cpp +++ b/tests/unit/plugins/relay/test-relay-http.cpp @@ -1041,6 +1041,9 @@ TEST(RelayHttp, ResponseAllocFree) POINTERS_EQUAL(NULL, response->body); relay_http_response_free (response); + + /* test free of NULL response */ + relay_http_response_free (NULL); } /* |