From 053efb5710767d72285701d4ea733de1bf6063c1 Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Sat, 4 Nov 2017 10:38:01 +0100 Subject: [PATCH] no need to check if pointer passed to free() is NULL --- libsndio/aucat.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libsndio/aucat.c b/libsndio/aucat.c index 1873e67..2a61514 100644 --- a/libsndio/aucat.c +++ b/libsndio/aucat.c @@ -335,10 +335,8 @@ bad_gen: unlink(tmp); } done: - if (tmp) - free(tmp); - if (path) - free(path); + free(tmp); + free(path); return 1; }