git.samba.org
/
garming
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make us clean under valgrind --leak-check=full by using talloc_autofree_context(...
[garming/samba-autobuild/.git]
/
source3
/
smbd
/
uid.c
diff --git
a/source3/smbd/uid.c
b/source3/smbd/uid.c
index 8998f6a371bd0adb9e549ef825ea0c216904b7c5..045de6f2d32a8cb850ec05213bc6385d75ff1953 100644
(file)
--- a/
source3/smbd/uid.c
+++ b/
source3/smbd/uid.c
@@
-32,7
+32,7
@@
bool change_to_guest(void)
if (!pass) {
/* Don't need to free() this as its stored in a static */
- pass = getpwnam_alloc(
NULL
, lp_guestaccount());
+ pass = getpwnam_alloc(
talloc_autofree_context()
, lp_guestaccount());
if (!pass)
return(False);
}