summaryrefslogtreecommitdiff
path: root/source3/groupdb
diff options
context:
space:
mode:
Diffstat (limited to 'source3/groupdb')
-rw-r--r--source3/groupdb/mapping.c2
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;
}