Type: fix
Change-Id: I4bf4c6c37f9ee6e262730c372f16fbc086a2d13c
Signed-off-by: Dave Wallace <[email protected]>
cert_bio = BIO_new (BIO_s_mem ());
BIO_write (cert_bio, test_srv_crt_rsa, test_srv_crt_rsa_len);
testcert = PEM_read_bio_X509 (cert_bio, NULL, NULL, NULL);
+ BIO_free (cert_bio);
if (!testcert)
{
clib_warning ("unable to parse certificate");
return -1;
}
X509_STORE_add_cert (om->cert_store, testcert);
+ X509_free (testcert);
rv = 0;
}
return (rv < 0 ? -1 : 0);