From ba97a395657ab2438965f32eed788479ed48ff8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Thu, 25 Apr 2024 19:59:56 +0200 Subject: relay: remove check of NULL pointers before calling relay_http_response_free() (issue #865) --- tests/unit/plugins/relay/test-relay-http.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/unit/plugins') 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); } /* -- cgit v1.2.3