openssl: Fix memory leak if ipAddrBlock is non-canonical
This commit is contained in:
1 parent
9e8292cb37
commit
b4ba8a6fb5
1 file changed
+1
-1
@@ -982,7 +982,7 @@ static bool parse_ipAddrBlock_ext(private_openssl_x509_t *this,
|
||||
|
||||
if (!X509v3_addr_is_canonical(blocks))
|
||||
{
|
||||
sk_IPAddressFamily_free(blocks);
|
||||
sk_IPAddressFamily_pop_free(blocks, IPAddressFamily_free);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user