summaryrefslogtreecommitdiffstats
path: root/source3/utils/net_rpc_samsync.c
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2006-03-10 14:14:23 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:15:14 -0500
commitc53c08ef866fd61fe3fa79bfaf3e9dc6b5aab4ae (patch)
treef6294a4cd80f365f78e6c7bfd673a3c67d9e714b /source3/utils/net_rpc_samsync.c
parentb5f12bc0f8717f5c91070a6615b9597d675a3a6c (diff)
downloadsamba-c53c08ef866fd61fe3fa79bfaf3e9dc6b5aab4ae.tar.gz
samba-c53c08ef866fd61fe3fa79bfaf3e9dc6b5aab4ae.tar.xz
samba-c53c08ef866fd61fe3fa79bfaf3e9dc6b5aab4ae.zip
r14152: Fix coverity #117: free storage alloc'ed by sstring_sub
(This used to be commit cf36f5949f8ac5ea020fcaa796ad92852df25ae7)
Diffstat (limited to 'source3/utils/net_rpc_samsync.c')
-rw-r--r--source3/utils/net_rpc_samsync.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/utils/net_rpc_samsync.c b/source3/utils/net_rpc_samsync.c
index 2c2ffbe6f0..b056d170d6 100644
--- a/source3/utils/net_rpc_samsync.c
+++ b/source3/utils/net_rpc_samsync.c
@@ -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;
}