free NULL cleanup 5a
Don't check for NULL before calling a free routine. This gets X509_.*free:
x509_name_ex_free X509_policy_tree_free X509_VERIFY_PARAM_free
X509_STORE_free X509_STORE_CTX_free X509_PKEY_free
X509_OBJECT_free_contents X509_LOOKUP_free X509_INFO_free
Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
@@ -70,8 +70,7 @@ int main(int argc, char **argv)
|
||||
if (cms)
|
||||
CMS_ContentInfo_free(cms);
|
||||
|
||||
if (cacert)
|
||||
X509_free(cacert);
|
||||
X509_free(cacert);
|
||||
|
||||
BIO_free(in);
|
||||
BIO_free(out);
|
||||
|
||||
Reference in New Issue
Block a user