summaryrefslogtreecommitdiffstats
path: root/source/lib/util.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2006-02-20 17:59:58 +0000
committerGerald Carter <jerry@samba.org>2006-02-20 17:59:58 +0000
commitbb61b5bb0c33bddd394712e9db38b001ec70f5e9 (patch)
tree5a367e205b07d14766db02c41211346d5b6f3133 /source/lib/util.c
parent299c60272fed68301630024fa68879f868acc96c (diff)
downloadsamba-bb61b5bb0c33bddd394712e9db38b001ec70f5e9.tar.gz
samba-bb61b5bb0c33bddd394712e9db38b001ec70f5e9.tar.xz
samba-bb61b5bb0c33bddd394712e9db38b001ec70f5e9.zip
r13571: Replace all calls to talloc_free() with thye TALLOC_FREE()
macro which sets the freed pointer to NULL.
Diffstat (limited to 'source/lib/util.c')
-rw-r--r--source/lib/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/lib/util.c b/source/lib/util.c
index dc57839df34..d4443a64808 100644
--- a/source/lib/util.c
+++ b/source/lib/util.c
@@ -1430,7 +1430,7 @@ const char *uidtoname(uid_t uid)
pass = getpwuid_alloc(NULL, uid);
if (pass) {
fstrcpy(name, pass->pw_name);
- talloc_free(pass);
+ TALLOC_FREE(pass);
} else {
slprintf(name, sizeof(name) - 1, "%ld",(long int)uid);
}
@@ -1467,7 +1467,7 @@ uid_t nametouid(const char *name)
pass = getpwnam_alloc(NULL, name);
if (pass) {
u = pass->pw_uid;
- talloc_free(pass);
+ TALLOC_FREE(pass);
return u;
}