From 28ef233497e577891fbecb5517a55127cc6f0894 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Mon, 27 Mar 2006 04:26:37 +0000 Subject: [PATCH] (file_init): leak less memory git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16827 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hx509/ks_file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/hx509/ks_file.c b/lib/hx509/ks_file.c index aecf05c1c..4dab673cf 100644 --- a/lib/hx509/ks_file.c +++ b/lib/hx509/ks_file.c @@ -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);