diff options
author | Max Kellermann <max@duempel.org> | 2009-12-15 19:42:54 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-12-15 19:42:54 +0100 |
commit | 6c0f50efb568a6da52e6c31920bc93c4254063c7 (patch) | |
tree | e191b6649f01baf64e6b7768d4bb6c4de8e6b2d0 /src/archive/bz2_plugin.c | |
parent | 2234d491b7c1a8cbea0cb4e444fc72c37aec5016 (diff) | |
download | mpd-6c0f50efb568a6da52e6c31920bc93c4254063c7.tar.gz mpd-6c0f50efb568a6da52e6c31920bc93c4254063c7.tar.xz mpd-6c0f50efb568a6da52e6c31920bc93c4254063c7.zip |
archive/bz2: removed NULL check before g_free()
g_free(NULL) is allowed.
Diffstat (limited to 'src/archive/bz2_plugin.c')
-rw-r--r-- | src/archive/bz2_plugin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/archive/bz2_plugin.c b/src/archive/bz2_plugin.c index 4db68f48e..78f13400a 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); |