summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-03-06 11:37:01 +0100
committerVolker Lendecke <vl@samba.org>2008-03-06 11:37:01 +0100
commit439fe513c168955194730904f6ec5c7ddb4f972c (patch)
treeab3e7d463b1541b4fa5a2d241323aff808dcf55c
parente82c9d1c319c216bbb108b16456df03ae2ad6e97 (diff)
downloadsamba-439fe513c168955194730904f6ec5c7ddb4f972c.tar.gz
samba-439fe513c168955194730904f6ec5c7ddb4f972c.tar.bz2
samba-439fe513c168955194730904f6ec5c7ddb4f972c.zip
Fix a memleak
Fixes Coverity ID 557 (This used to be commit fe882a575152233de6f4bf2143aca681319b0226)
-rw-r--r--source3/nsswitch/wins.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/nsswitch/wins.c b/source3/nsswitch/wins.c
index 35649dfda2..e74cfaf69f 100644
--- a/source3/nsswitch/wins.c
+++ b/source3/nsswitch/wins.c
@@ -110,6 +110,7 @@ static struct in_addr *lookup_byname_backend(const char *name, int *count)
}
if (address[0].ss.ss_family != AF_INET) {
free(address);
+ free(ret);
return NULL;
}
*ret = ((struct sockaddr_in *)&address[0].ss)->sin_addr;