summaryrefslogtreecommitdiff
path: root/source3/groupdb
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2004-01-25 10:14:50 +0000
committerVolker Lendecke <vlendec@samba.org>2004-01-25 10:14:50 +0000
commit7ff912521a74eaf21411441e4dd7320bc246e882 (patch)
treeb29e15919a76a80e3801b6aedf7c7c95e10e024f /source3/groupdb
parent4d6b478b19dd583cb4df3db2d59a4815236c593c (diff)
downloadsamba-7ff912521a74eaf21411441e4dd7320bc246e882.tar.gz
samba-7ff912521a74eaf21411441e4dd7320bc246e882.tar.bz2
samba-7ff912521a74eaf21411441e4dd7320bc246e882.zip
Fix memleak just introduced. Thanks to abartlet :-)
Volker (This used to be commit be485eea81c6bab8067642c26e41a14652ce7ee6)
Diffstat (limited to 'source3/groupdb')
-rw-r--r--source3/groupdb/mapping.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/groupdb/mapping.c b/source3/groupdb/mapping.c
index 7513f3b141..048a6c5db0 100644
--- a/source3/groupdb/mapping.c
+++ b/source3/groupdb/mapping.c
@@ -769,6 +769,7 @@ BOOL get_sid_list_of_group(gid_t gid, DOM_SID **sids, int *num_sids)
if (!s) {
DEBUG(0,("get_sid_list_of_group: unable to enlarge "
"SID list!\n"));
+ pwent_free(userlist);
winbind_on();
return False;
}