netlogon_creds_cli: Fix talloc_stackframe leaks
authorVolker Lendecke <vl@samba.org>
Wed, 13 Sep 2017 11:10:59 +0000 (04:10 -0700)
committerVolker Lendecke <vl@samba.org>
Mon, 25 Sep 2017 07:43:11 +0000 (09:43 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
libcli/auth/netlogon_creds_cli.c

index dc05316ac134b50c6232aeb0b54fd1c4c0d5a1f4..847922c0256f2b6e58331e24d1f4eec2d47db03d 100644 (file)
@@ -272,11 +272,13 @@ NTSTATUS netlogon_creds_cli_context_global(struct loadparm_context *lp_ctx,
        *_context = NULL;
 
        if (msg_ctx == NULL) {
+               TALLOC_FREE(frame);
                return NT_STATUS_INVALID_PARAMETER_MIX;
        }
 
        client_computer = lpcfg_netbios_name(lp_ctx);
        if (strlen(client_computer) > 15) {
+               TALLOC_FREE(frame);
                return NT_STATUS_INVALID_PARAMETER_MIX;
        }