[Spice-devel] [PATCH libcacard 3/7] vcard_emul_nss: Avoid memory leaks

Jakub Jelen jjelen at redhat.com
Tue Jul 31 09:35:47 UTC 2018


 * This structure was never freed

Signed-off-by: Jakub Jelen <jjelen at redhat.com>
Reviewed-by: Robert Relyea <rrelyea at redhat.com>
---
 src/vcard_emul_nss.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/vcard_emul_nss.c b/src/vcard_emul_nss.c
index f2678d5..0c8f0e9 100644
--- a/src/vcard_emul_nss.c
+++ b/src/vcard_emul_nss.c
@@ -493,6 +493,7 @@ vreader_emul_delete(VReaderEmul *vreader_emul)
     if (vreader_emul == NULL) {
         return;
     }
+    vcard_free(vreader_emul->saved_vcard);
     if (vreader_emul->slot) {
         PK11_FreeSlot(vreader_emul->slot);
     }
-- 
2.17.1



More information about the Spice-devel mailing list