summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2005-03-29 15:17:26 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:56:23 -0500
commitacd9ef30f342125cd445df5ad83fe7429ee322d0 (patch)
treec72775dfc906290a836348754e463006d0391212 /source3/rpcclient
parentb1d8753aed8186f94652155f554fda1b69dce5fa (diff)
downloadsamba-acd9ef30f342125cd445df5ad83fe7429ee322d0.tar.gz
samba-acd9ef30f342125cd445df5ad83fe7429ee322d0.tar.bz2
samba-acd9ef30f342125cd445df5ad83fe7429ee322d0.zip
r6117: Close handles after group-creation as well.
Guenther (This used to be commit f41f1437e7682ecd7e381357fa2acc74ad970fe7)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r--source3/rpcclient/cmd_samr.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c
index bc002da71d..910ccbb7fa 100644
--- a/source3/rpcclient/cmd_samr.c
+++ b/source3/rpcclient/cmd_samr.c
@@ -1339,6 +1339,15 @@ static NTSTATUS cmd_samr_create_dom_group(struct cli_state *cli,
if (!NT_STATUS_IS_OK(result))
goto done;
+ result = cli_samr_close(cli, mem_ctx, &group_pol);
+ if (!NT_STATUS_IS_OK(result)) goto done;
+
+ result = cli_samr_close(cli, mem_ctx, &domain_pol);
+ if (!NT_STATUS_IS_OK(result)) goto done;
+
+ result = cli_samr_close(cli, mem_ctx, &connect_pol);
+ if (!NT_STATUS_IS_OK(result)) goto done;
+
done:
return result;
}