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
1 changed files with 2 additions and 4 deletions

View File

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