Skip to content

Commit c742abb

Browse files
jellynikic
authored andcommitted
openssl_pkcs12_read: add missing BIO_free
When filling the extracerts array with certificates bio_out is created but not free'd leading to a small memory leak of 224 bytes (reported by valgrind).
1 parent cea3442 commit c742abb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/openssl/openssl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2990,6 +2990,7 @@ PHP_FUNCTION(openssl_pkcs12_read)
29902990
}
29912991

29922992
X509_free(aCA);
2993+
BIO_free(bio_out);
29932994
}
29942995

29952996
sk_X509_free(ca);

0 commit comments

Comments
 (0)