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);
}
done:
if (tmp)
free(tmp);
if (path)
free(path);
free(tmp);
free(path);
return 1;
}