From 15fc7e227d9698dcc8781560ff6f2bb35bb915ba Mon Sep 17 00:00:00 2001 From: Petr Uzel Date: Sun, 11 Apr 2010 10:52:17 +0200 Subject: plug memory leak in lockdownd_gen_pair_cert() --- src/lockdown.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/lockdown.c') diff --git a/src/lockdown.c b/src/lockdown.c index 8127456..41fe1a6 100644 --- a/src/lockdown.c +++ b/src/lockdown.c @@ -1169,6 +1169,9 @@ lockdownd_error_t lockdownd_gen_pair_cert(gnutls_datum_t public_key, gnutls_datu g_free(pem_root_cert.data); g_free(pem_host_cert.data); + + if (dev_pem.data) + gnutls_free(dev_pem.data); } } } -- cgit v1.1-32-gdbae