]> git.meshlink.io Git - catta/commitdiff
fix a bad avahi_free() found by sebest
authorLennart Poettering <lennart@poettering.net>
Sat, 15 Oct 2005 18:28:01 +0000 (18:28 +0000)
committerLennart Poettering <lennart@poettering.net>
Sat, 15 Oct 2005 18:28:01 +0000 (18:28 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@777 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-core/netlink.c

index d5d22951aac2e7b0db3fb00fe6b301f99bab3de6..11961b764f866b795a4d4e3fc2fee8865090c99f 100644 (file)
@@ -145,9 +145,7 @@ fail:
         close(fd);
 
     if (nl) {
-        if (nl->buffer)
-            avahi_free(nl);
-        
+        avahi_free(nl->buffer);
         avahi_free(nl);
     }