vcard_emul_make_key() allocates memory for the VCardKey structure, but
vcard_emul_delete_key never frees that memory. Since VCardKey definition
is private to vcard-emul-nss.c, there are no users which could use a
stack-allocated VCardKey.

Signed-off-by: Christophe Fergeau <cferg...@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 9658c5a..e59274d 100644
--- a/src/vcard_emul_nss.c
+++ b/src/vcard_emul_nss.c
@@ -177,6 +177,7 @@ vcard_emul_delete_key(VCardKey *key)
     if (key->slot) {
         PK11_FreeSlot(key->slot);
     }
+    g_free(key);
 }
 
 /*
-- 
2.17.1

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

Reply via email to