summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-12-28 17:08:57 +0100
committerVolker Lendecke <vl@samba.org>2010-12-28 17:11:34 +0100
commit5f79588de07754ef112abac33535a34624b3b078 (patch)
treef4a47785c4a930633d268ebfcf3d33f14c0e37bd
parent181cd3281c4f2c53dc507f59d281a2517579cfe1 (diff)
downloadsamba-5f79588de07754ef112abac33535a34624b3b078.tar.gz
samba-5f79588de07754ef112abac33535a34624b3b078.tar.bz2
samba-5f79588de07754ef112abac33535a34624b3b078.zip
Fix a memleak in nss_wins
-rw-r--r--nsswitch/wins.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nsswitch/wins.c b/nsswitch/wins.c
index 276724dc36..7a49565f2d 100644
--- a/nsswitch/wins.c
+++ b/nsswitch/wins.c
@@ -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;
}
}