(file_init): leak less memory

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16827 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-03-27 04:26:37 +00:00
parent 6e3958b47e
commit 28ef233497

View File

@@ -147,7 +147,7 @@ file_init(hx509_context context,
const char *residue, hx509_lock lock)
{
char *certfn = NULL, *keyfn, *friendlyname = NULL;
hx509_cert cert;
hx509_cert cert = NULL;
int ret;
struct ks_file *f;
struct hx509_collector *c;
@@ -199,6 +199,7 @@ file_init(hx509_context context,
if (ret == 0)
*data = f;
out:
hx509_cert_free(cert);
_hx509_collector_free(c);
if (certfn)
free(certfn);