From: Lennart Poettering Date: Sat, 15 Oct 2005 18:28:01 +0000 (+0000) Subject: fix a bad avahi_free() found by sebest X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=004678718ef36a4257856350bde7f93ad3141b9a;p=catta fix a bad avahi_free() found by sebest git-svn-id: file:///home/lennart/svn/public/avahi/trunk@777 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- diff --git a/avahi-core/netlink.c b/avahi-core/netlink.c index d5d2295..11961b7 100644 --- a/avahi-core/netlink.c +++ b/avahi-core/netlink.c @@ -145,9 +145,7 @@ fail: close(fd); if (nl) { - if (nl->buffer) - avahi_free(nl); - + avahi_free(nl->buffer); avahi_free(nl); }