From ec15993d9d7ea7108101f068c9929a62be29dc67 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Fri, 6 Jun 2014 18:32:08 +0200 Subject: libcacard: Drop superfluous conditionals around g_free() Signed-off-by: Markus Armbruster Signed-off-by: Michael Tokarev --- libcacard/vcard.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'libcacard/vcard.c') diff --git a/libcacard/vcard.c b/libcacard/vcard.c index 6aaf085ecc..bf342aaf6d 100644 --- a/libcacard/vcard.c +++ b/libcacard/vcard.c @@ -51,9 +51,7 @@ vcard_buffer_response_delete(VCardBufferResponse *buffer_response) if (buffer_response == NULL) { return; } - if (buffer_response->buffer) { - g_free(buffer_response->buffer); - } + g_free(buffer_response->buffer); g_free(buffer_response); } @@ -121,10 +119,8 @@ vcard_delete_applet(VCardApplet *applet) applet->applet_private_free(applet->applet_private); applet->applet_private = NULL; } - if (applet->aid) { - g_free(applet->aid); - applet->aid = NULL; - } + g_free(applet->aid); + applet->aid = NULL; g_free(applet); } -- cgit v1.2.3