(store_func): free whole CertBag, not just the data part.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20909 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -516,7 +516,7 @@ store_func(hx509_context context, void *ctx, hx509_cert c)
|
||||
}
|
||||
ASN1_MALLOC_ENCODE(PKCS12_CertBag, os.data, os.length,
|
||||
&cb, &size, ret);
|
||||
free(cb.certValue.data);
|
||||
free_PKCS12_CertBag(&cb);
|
||||
if (ret)
|
||||
goto out;
|
||||
|
||||
|
Reference in New Issue
Block a user