free() can handle NULL just fine so skip the check

Fixes #117
This commit is contained in:
Wim Taymans 2018-12-19 17:47:25 +01:00
parent b6db6e2130
commit 0984096089
13 changed files with 63 additions and 99 deletions

View file

@ -36,8 +36,7 @@ struct peaks_data {
static void impl_peaks_free(struct resample *r)
{
if (r->data)
free(r->data);
free(r->data);
r->data = NULL;
}