Commit a1cd8838 authored by Christophe Fergeau's avatar Christophe Fergeau

vcard-emul-nss: Fix VCardKey leak

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: default avatarChristophe Fergeau <cfergeau@redhat.com>
parent 0a5ecf3f
......@@ -177,6 +177,7 @@ vcard_emul_delete_key(VCardKey *key)
if (key->slot) {
PK11_FreeSlot(key->slot);
}
g_free(key);
}
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment