Try to not leak memory.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18788 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-10-21 20:32:41 +00:00
parent 1eb85d5451
commit 24e79ac572
2 changed files with 4 additions and 1 deletions

View File

@@ -1484,6 +1484,8 @@ hx509_crypto_destroy(hx509_crypto crypto)
free(crypto->name);
if (crypto->key.data)
free(crypto->key.data);
if (crypto->param)
free(crypto->param);
der_free_oid(&crypto->oid);
memset(crypto, 0, sizeof(*crypto));
free(crypto);