r14152: Fix coverity #117: free storage alloc'ed by sstring_sub
authorJim McDonough <jmcd@samba.org>
Fri, 10 Mar 2006 14:14:23 +0000 (14:14 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:15:14 +0000 (11:15 -0500)
source/utils/net_rpc_samsync.c

index 2c2ffbe6f036da1fba90d53bec8f24527ad366b3..b056d170d6ff467f3d0743b7f1353341877093e0 100644 (file)
@@ -1384,6 +1384,7 @@ static NTSTATUS map_populate_groups(GROUPMAP *groupmap, ACCOUNTMAP *accountmap,
                     group_attr, suffix);
        accountmap[7].rid = 551;
        pstr_sprintf(accountmap[7].cn, "%s", "Replicators");
+       SAFE_FREE(group_attr);
        return NT_STATUS_OK;
 }