Fix a memleak in nss_wins
authorVolker Lendecke <vl@samba.org>
Tue, 28 Dec 2010 16:08:57 +0000 (17:08 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 28 Dec 2010 16:11:34 +0000 (17:11 +0100)
nsswitch/wins.c

index 276724dc36f5c90aa062be731b2404e83f448499..7a49565f2dde61cd28e8c7413933e852d1b9b33c 100644 (file)
@@ -152,6 +152,7 @@ static struct in_addr *lookup_byname_backend(const char *name, int *count)
                                return NULL;
                        }
                        *ret = ((struct sockaddr_in *)pss)->sin_addr;
+                       SAFE_FREE(pss);
                        break;
                }
        }