]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r6117: Close handles after group-creation as well.
authorGünther Deschner <gd@samba.org>
Tue, 29 Mar 2005 15:17:26 +0000 (15:17 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:56:23 +0000 (10:56 -0500)
Guenther

source/rpcclient/cmd_samr.c

index bc002da71dd4a4d461f7a8a83ab406256dca9f93..910ccbb7fa4dfdaaa3c5e5b46a41da6d9267d698 100644 (file)
@@ -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;
 }