summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2020-03-10 10:51:45 +0100
committerFrediano Ziglio <freddy77@gmail.com>2020-04-17 08:59:14 +0100
commit30bdd7c9e31bb3a79ba6ccd876e172f2c72c1352 (patch)
tree00e45a2c20b5a7da1b1350b04e1c535cec29ebe5 /src
parent1b03307d55577d5cb8891a223de408d9d7c42ba8 (diff)
vcard_emul_nss: Avoid memory leaks by properly freeing all references
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/vcard_emul_nss.c2
1 files changed, 2 insertions, 0 deletions
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);
}