summaryrefslogtreecommitdiff
path: root/tests/unit/plugins
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-04-25 19:59:56 +0200
committerSébastien Helleu <flashcode@flashtux.org>2024-04-26 21:22:49 +0200
commitba97a395657ab2438965f32eed788479ed48ff8f (patch)
treeb294a07830f79fec95eafc87a585c3539bece72e /tests/unit/plugins
parent42cba254532074127bc3e99a9af13cab64143f3d (diff)
downloadweechat-ba97a395657ab2438965f32eed788479ed48ff8f.zip
relay: remove check of NULL pointers before calling relay_http_response_free() (issue #865)
Diffstat (limited to 'tests/unit/plugins')
-rw-r--r--tests/unit/plugins/relay/test-relay-http.cpp3
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);
}
/*