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:
parent
d4bfb5c488
commit
d0739d436e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user