aboutsummaryrefslogtreecommitdiff
path: root/libcacard
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2014-06-06 21:30:32 +0200
committerMichael Tokarev <mjt@tls.msk.ru>2014-06-10 19:39:34 +0400
commitfec0da9cbf6b357e046cac4295185610399dcbb8 (patch)
tree7558a42e2206b38937eb53b542744fec458b3e26 /libcacard
parentec15993d9d7ea7108101f068c9929a62be29dc67 (diff)
downloadqemu-fec0da9cbf6b357e046cac4295185610399dcbb8.zip
qemu-fec0da9cbf6b357e046cac4295185610399dcbb8.tar.gz
qemu-fec0da9cbf6b357e046cac4295185610399dcbb8.tar.bz2
libcacard: Clean up dead stores before g_free()
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'libcacard')
-rw-r--r--libcacard/vcard.c4
-rw-r--r--libcacard/vreader.c2
2 files changed, 0 insertions, 6 deletions
diff --git a/libcacard/vcard.c b/libcacard/vcard.c
index bf342aa..87ad516 100644
--- a/libcacard/vcard.c
+++ b/libcacard/vcard.c
@@ -117,10 +117,8 @@ vcard_delete_applet(VCardApplet *applet)
}
if (applet->applet_private_free) {
applet->applet_private_free(applet->applet_private);
- applet->applet_private = NULL;
}
g_free(applet->aid);
- applet->aid = NULL;
g_free(applet);
}
@@ -174,8 +172,6 @@ vcard_free(VCard *vcard)
}
if (vcard->vcard_private_free) {
(*vcard->vcard_private_free)(vcard->vcard_private);
- vcard->vcard_private_free = 0;
- vcard->vcard_private = 0;
}
for (current_applet = vcard->applet_list; current_applet;
current_applet = next_applet) {
diff --git a/libcacard/vreader.c b/libcacard/vreader.c
index ffa05b6..9f42f0f 100644
--- a/libcacard/vreader.c
+++ b/libcacard/vreader.c
@@ -343,8 +343,6 @@ vreader_list_delete(VReaderList *list)
next_entry = vreader_list_get_next(current_entry);
vreader_list_entry_delete(current_entry);
}
- list->head = NULL;
- list->tail = NULL;
g_free(list);
}