test_ssl_crl_ocsp.c: free parsed URL parts on the failure path

pull/11006/head
Ruby Martin 2026-08-20 15:51:35 -06:00
parent a9526e9fd8
commit 259b291f42
1 changed files with 4 additions and 0 deletions

View File

@ -392,6 +392,10 @@ static int test_ssl_crl_ocsp_url_bad(const char* url)
ExpectNull(path);
ExpectIntEQ(isSsl, 0);
XFREE(host, NULL, DYNAMIC_TYPE_OPENSSL);
XFREE(port, NULL, DYNAMIC_TYPE_OPENSSL);
XFREE(path, NULL, DYNAMIC_TYPE_OPENSSL);
return EXPECT_RESULT();
}