Don't expose freed pointer.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21136 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -229,6 +229,7 @@ hx509_cert_init(hx509_context context, const Certificate *c, hx509_cert *cert)
|
||||
if (ret) {
|
||||
free((*cert)->data);
|
||||
free(*cert);
|
||||
*cert = NULL;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
Reference in New Issue
Block a user