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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 * This structure was never freed

Signed-off-by: Jakub Jelen <jjelen@xxxxxxxxxx>
Reviewed-by: Robert Relyea <rrelyea@xxxxxxxxxx>
---
 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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]