git.samba.org
/
amitay
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4bfb5c
)
s3: Remove talloc_autofree_context() from nametouid()
author
Volker Lendecke
<vl@samba.org>
Sun, 26 Sep 2010 02:21:56 +0000
(19:21 -0700)
committer
Volker Lendecke
<vl@samba.org>
Sun, 26 Sep 2010 15:36:40 +0000
(17:36 +0200)
pass is freed a few lines down
source3/lib/util.c
patch
|
blob
|
history
diff --git
a/source3/lib/util.c
b/source3/lib/util.c
index 28336512df9ec24f4a0026eae1937086ed9c3e23..90fcb3773e72228c710f7ed5b82cd091fb5b3038 100644
(file)
--- a/
source3/lib/util.c
+++ b/
source3/lib/util.c
@@
-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);