From 12d3e0df9980822282f70dffad148b729dbee541 Mon Sep 17 00:00:00 2001 From: diego Date: Sun, 7 Nov 2010 12:47:40 +0000 Subject: cleanup: don't check for NULL before free() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit patch by Clément Bœsch, ubitux gmail com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32598 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/stream_cddb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'stream/stream_cddb.c') diff --git a/stream/stream_cddb.c b/stream/stream_cddb.c index abc6a86966..5a4b3c1cee 100644 --- a/stream/stream_cddb.c +++ b/stream/stream_cddb.c @@ -783,9 +783,7 @@ static int cddb_retrieve(cddb_data_t *cddb_data) if (ret < 0) return -1; - if (cddb_data->cache_dir != NULL) { - free(cddb_data->cache_dir); - } + free(cddb_data->cache_dir); return 0; } -- cgit v1.2.3