(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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user