summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2003-06-17 12:31:02 +0000
committerVolker Lendecke <vlendec@samba.org>2003-06-17 12:31:02 +0000
commit1eb644772768dff6252f89aadf2560f556449809 (patch)
tree4b79574b3b4d3d5ccfe89fb629aee682c2d19ece
parent9606397ab1216f995c017957da619a00394b5c7f (diff)
downloadsamba-1eb644772768dff6252f89aadf2560f556449809.tar.gz
samba-1eb644772768dff6252f89aadf2560f556449809.tar.bz2
samba-1eb644772768dff6252f89aadf2560f556449809.zip
And more other memory leaks. One new (idmap) and one ancient (groupdb).
Volker (This used to be commit 2392f460aeb11f32759e84faf1e7ace73c5db281)
-rw-r--r--source3/groupdb/mapping.c4
-rw-r--r--source3/sam/idmap_util.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/source3/groupdb/mapping.c b/source3/groupdb/mapping.c
index 2b7a852688..5b5d0b0cc3 100644
--- a/source3/groupdb/mapping.c
+++ b/source3/groupdb/mapping.c
@@ -199,6 +199,10 @@ static BOOL default_group_mapping(void)
sid_to_string(str_guests, &sid_guests);
add_initial_entry(-1, str_guests, SID_NAME_DOM_GRP, "Domain Guests", "", privilege_none, PR_ACCESS_FROM_NETWORK);
+ free_privilege(&privilege_none);
+ free_privilege(&privilege_all);
+ free_privilege(&privilege_print_op);
+
return True;
}
diff --git a/source3/sam/idmap_util.c b/source3/sam/idmap_util.c
index 8c3a378832..012da29300 100644
--- a/source3/sam/idmap_util.c
+++ b/source3/sam/idmap_util.c
@@ -354,6 +354,7 @@ BOOL idmap_init_wellknown_sids(void)
id.gid = map[i].gid;
idmap_set_mapping(&(map[i].sid), id, ID_GROUPID);
}
+ SAFE_FREE(map);
}
/* check if DOMAIN_GROUP_RID_GUESTS SID is set, if not store the