1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s3-auth Fix memory leak in security=share and force user =

In these cases, the server_info was not stolen onto a long term memory
context, and so remained on the NULL context where it was created.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Feb 16 01:08:19 CET 2011 on sn-devel-104
This commit is contained in:
Andrew Bartlett 2011-02-11 11:34:56 +11:00
parent dce69c29e7
commit 1354d3dc74

View File

@ -819,7 +819,7 @@ NTSTATUS make_serverinfo_from_username(TALLOC_CTX *mem_ctx,
return status;
}
*presult = result;
*presult = talloc_steal(mem_ctx, result);
return NT_STATUS_OK;
}