(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:
Love Hörnquist Åstrand
2007-06-05 03:09:13 +00:00
parent 9e262359f2
commit 340dff70cb

View File

@@ -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;