X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fdaemon%2Fcommon.h;h=6981d21d7aad6371fafda10f2ae7a68616ccaa7d;hb=c1e610803799c42a121f4b6374a202d6612a1286;hp=7b4eb3abfd53bf10a7b4fced80f1c017802f07ed;hpb=463fb2d44339625aae269e07f2773ee4f158faa8;p=collectd.git 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)