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

s3: Remove talloc_autofree_context() from nametouid()

pass is freed a few lines down
This commit is contained in:
Volker Lendecke 2010-09-25 19:21:56 -07:00
parent d4bfb5c488
commit d0739d436e

View File

@ -1306,7 +1306,7 @@ uid_t nametouid(const char *name)
char *p;
uid_t u;
pass = getpwnam_alloc(talloc_autofree_context(), name);
pass = getpwnam_alloc(talloc_tos(), name);
if (pass) {
u = pass->pw_uid;
TALLOC_FREE(pass);