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>
This commit is contained in:
parent
ec15993d9d
commit
fec0da9cbf
@ -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) {
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user