From 30bdd7c9e31bb3a79ba6ccd876e172f2c72c1352 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Tue, 10 Mar 2020 10:51:45 +0100 Subject: vcard_emul_nss: Avoid memory leaks by properly freeing all references Signed-off-by: Jakub Jelen Acked-by: Frediano Ziglio --- src/vcard_emul_nss.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/vcard_emul_nss.c b/src/vcard_emul_nss.c index e2e237f..e633227 100644 --- a/src/vcard_emul_nss.c +++ b/src/vcard_emul_nss.c @@ -1071,6 +1071,7 @@ vcard_emul_init(const VCardEmulOptions *options) vreader_free(vreader); has_readers = PR_TRUE; } + PK11_FreeSlot(slot); g_free(certs); g_free(cert_len); g_free(keys); @@ -1138,6 +1139,7 @@ vcard_emul_init(const VCardEmulOptions *options) vreader_get_name(vreader)); vcard_free(vcard); } + vreader_free(vreader); } vcard_emul_new_event_thread(module); } -- cgit v1.2.3