diff options
author | Jakub Jelen <jjelen@redhat.com> | 2020-03-10 10:51:45 +0100 |
---|---|---|
committer | Frediano Ziglio <freddy77@gmail.com> | 2020-04-17 08:59:14 +0100 |
commit | 30bdd7c9e31bb3a79ba6ccd876e172f2c72c1352 (patch) | |
tree | 00e45a2c20b5a7da1b1350b04e1c535cec29ebe5 /src | |
parent | 1b03307d55577d5cb8891a223de408d9d7c42ba8 (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.c | 2 |
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); } |