diff options
author | Volker Lendecke <vlendec@samba.org> | 2003-06-18 12:00:52 +0000 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2003-06-18 12:00:52 +0000 |
commit | e6fd597fce61787789b76c323c56edc979e4e1fc (patch) | |
tree | e4fa003a56b1067a700e8f15e277df78f9eb42ad /source3/groupdb | |
parent | e48ebd09ffc57633fcb96c3a9406c9e7f65c5b3c (diff) | |
download | samba-e6fd597fce61787789b76c323c56edc979e4e1fc.tar.gz samba-e6fd597fce61787789b76c323c56edc979e4e1fc.tar.bz2 samba-e6fd597fce61787789b76c323c56edc979e4e1fc.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
(This used to be commit 9750799ba2e1aaa59fa255f23880c9c618195c3d)
Diffstat (limited to 'source3/groupdb')
-rw-r--r-- | source3/groupdb/mapping.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/groupdb/mapping.c b/source3/groupdb/mapping.c index 5b5d0b0cc3..e13730b141 100644 --- a/source3/groupdb/mapping.c +++ b/source3/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; } |