sbc: Fix redundant null check on calling free()

Issues found by smatch static check: http://smatch.sourceforge.net/
This commit is contained in:
Gustavo F. Padovan 2011-03-14 15:09:50 -03:00 committed by Luiz Augusto von Dentz
parent 84d91fb708
commit 16a05e52c6

View file

@ -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));
}