From: Gustavo F. Padovan Date: Mon, 14 Mar 2011 18:09:50 +0000 (-0300) Subject: sbc: Fix redundant null check on calling free() X-Git-Tag: v0.99.1~228^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=16a05e52c635e192eb878ec5b3a87e3e00d91aed;p=platform%2Fupstream%2Fpulseaudio.git sbc: Fix redundant null check on calling free() Issues found by smatch static check: http://smatch.sourceforge.net/ --- diff --git a/src/modules/bluetooth/sbc/sbc.c b/src/modules/bluetooth/sbc/sbc.c index 3af0a03..5c5c111 100644 --- a/src/modules/bluetooth/sbc/sbc.c +++ b/src/modules/bluetooth/sbc/sbc.c @@ -1141,8 +1141,7 @@ void sbc_finish(sbc_t *sbc) if (!sbc) return; - if (sbc->priv_alloc_base) - free(sbc->priv_alloc_base); + free(sbc->priv_alloc_base); memset(sbc, 0, sizeof(sbc_t)); }