1
0
mirror of https://github.com/ericonr/sndio.git synced 2024-02-18 04:45:21 -06:00

no need to check if pointer passed to free() is NULL

This commit is contained in:
Alexandre Ratchov 2017-11-04 10:38:01 +01:00
parent 93b9e03596
commit 053efb5710

View File

@ -335,9 +335,7 @@ bad_gen:
unlink(tmp); unlink(tmp);
} }
done: done:
if (tmp)
free(tmp); free(tmp);
if (path)
free(path); free(path);
return 1; return 1;
} }