1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3-auth: Do not leak tmp_ctx if make_server_info() fails.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
This commit is contained in:
Andreas Schneider 2014-02-28 17:15:40 +01:00 committed by Günther Deschner
parent cf73692f96
commit 4081c29d3b

View File

@ -75,7 +75,8 @@ NTSTATUS make_server_info_sam(TALLOC_CTX *mem_ctx,
server_info = make_server_info(tmp_ctx); server_info = make_server_info(tmp_ctx);
if (server_info == NULL) { if (server_info == NULL) {
return NT_STATUS_NO_MEMORY; status = NT_STATUS_NO_MEMORY;
goto out;
} }
pwd = Get_Pwnam_alloc(tmp_ctx, username); pwd = Get_Pwnam_alloc(tmp_ctx, username);