From c1e610803799c42a121f4b6374a202d6612a1286 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 23 Apr 2016 14:08:07 +0200 Subject: [PATCH] sfree: don't check for NULL before calling free free(NULL) is safe to call --- src/daemon/common.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/daemon/common.h b/src/daemon/common.h index 7b4eb3ab..6981d21d 100644 --- a/src/daemon/common.h +++ b/src/daemon/common.h @@ -37,9 +37,7 @@ #define sfree(ptr) \ do { \ - if((ptr) != NULL) { \ - free(ptr); \ - } \ + free(ptr); \ (ptr) = NULL; \ } while (0) -- 2.30.2