From 626fc201ecd2bce291e051e7ee1aa577f11afc26 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 11 Aug 2005 20:01:39 +0000 Subject: [PATCH] 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 --- avahi-client/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5