summaryrefslogtreecommitdiffstats
path: root/source/groupdb
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2003-06-18 12:00:52 +0000
committerVolker Lendecke <vlendec@samba.org>2003-06-18 12:00:52 +0000
commit9750799ba2e1aaa59fa255f23880c9c618195c3d (patch)
tree428af1ea04b726330b23413e31f5b53458337008 /source/groupdb
parent2dfa896e6fdd52aa0eebe7d811c7b4072fe98be3 (diff)
downloadsamba-9750799ba2e1aaa59fa255f23880c9c618195c3d.tar.gz
samba-9750799ba2e1aaa59fa255f23880c9c618195c3d.tar.xz
samba-9750799ba2e1aaa59fa255f23880c9c618195c3d.zip
And some more memory leaks in mapping.c and pdb_tdb.c. tdb_nextkey
mallocs its key, so we should free it after use. Volker
Diffstat (limited to 'source/groupdb')
-rw-r--r--source/groupdb/mapping.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/groupdb/mapping.c b/source/groupdb/mapping.c
index 5b5d0b0cc3f..e13730b141f 100644
--- a/source/groupdb/mapping.c
+++ b/source/groupdb/mapping.c
@@ -625,6 +625,7 @@ static BOOL get_group_map_from_gid(gid_t gid, GROUP_MAP *map, BOOL with_priv)
if (gid==map->gid) {
if (!with_priv)
free_privilege(&map->priv_set);
+ SAFE_FREE(kbuf.dptr);
return True;
}
@@ -692,6 +693,7 @@ static BOOL get_group_map_from_ntname(char *name, GROUP_MAP *map, BOOL with_priv
if (StrCaseCmp(name, map->nt_name)==0) {
if (!with_priv)
free_privilege(&map->priv_set);
+ SAFE_FREE(kbuf.dptr);
return True;
}