From: Lennart Poettering Date: Thu, 11 Aug 2005 20:01:39 +0000 (+0000) Subject: There is no need to test a pointer to be freed for being NULL. free() does this anywa... X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=626fc201ecd2bce291e051e7ee1aa577f11afc26;p=catta There is no need to test a pointer to be freed for being NULL. free() does this anyway. See free(3) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@295 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- diff --git a/avahi-client/client.c b/avahi-client/client.c index 49ace50..2ef1bf6 100644 --- a/avahi-client/client.c +++ b/avahi-client/client.c @@ -264,7 +264,7 @@ avahi_client_new (AvahiClientCallback callback, void *user_data) return tmp; fail: - if (tmp) free (tmp); + free (tmp); return NULL; }