From 6c0f50efb568a6da52e6c31920bc93c4254063c7 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 15 Dec 2009 19:42:54 +0100 Subject: archive/bz2: removed NULL check before g_free() g_free(NULL) is allowed. --- src/archive/bz2_plugin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/archive') diff --git a/src/archive/bz2_plugin.c b/src/archive/bz2_plugin.c index 4db68f48..78f13400 100644 --- a/src/archive/bz2_plugin.c +++ b/src/archive/bz2_plugin.c @@ -140,8 +140,8 @@ static void bz2_close(struct archive_file *file) { bz2_context *context = (bz2_context *) file; - if (context->name) - g_free(context->name); + + g_free(context->name); input_stream_close(&context->istream); g_free(context); -- cgit v1.2.3