diff options
-rw-r--r-- | source3/groupdb/mapping.c | 4 | ||||
-rw-r--r-- | source3/sam/idmap_util.c | 1 |
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 |