diff options
author | Gustavo F. Padovan <gustavo@padovan.org> | 2011-03-14 15:09:50 -0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz-von@nokia.com> | 2011-03-14 15:09:50 -0300 |
commit | 16a05e52c635e192eb878ec5b3a87e3e00d91aed (patch) | |
tree | 2dddd62f73db304d8123833deba70c0eb755cc32 /src/modules/bluetooth/sbc | |
parent | 84d91fb7084118730229fb83e2fc5479bc8f35f2 (diff) |
sbc: Fix redundant null check on calling free()
Issues found by smatch static check: http://smatch.sourceforge.net/
Diffstat (limited to 'src/modules/bluetooth/sbc')
-rw-r--r-- | src/modules/bluetooth/sbc/sbc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/bluetooth/sbc/sbc.c b/src/modules/bluetooth/sbc/sbc.c index 3af0a03c..5c5c1112 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)); } |