1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00

r13571: Replace all calls to talloc_free() with thye TALLOC_FREE()

macro which sets the freed pointer to NULL.
(This used to be commit b65be8874a)
This commit is contained in:
Gerald Carter
2006-02-20 17:59:58 +00:00
committed by Gerald (Jerry) Carter
parent 2cf38b62c5
commit fb5362c069
61 changed files with 268 additions and 267 deletions

View File

@ -331,7 +331,7 @@ static int process_root(int local_flags)
if (!user_name[0] && (pwd = getpwuid_alloc(NULL, geteuid()))) {
fstrcpy(user_name, pwd->pw_name);
talloc_free(pwd);
TALLOC_FREE(pwd);
}
if (!user_name[0]) {
@ -476,7 +476,7 @@ static int process_nonroot(int local_flags)
pwd = getpwuid_alloc(NULL, getuid());
if (pwd) {
fstrcpy(user_name,pwd->pw_name);
talloc_free(pwd);
TALLOC_FREE(pwd);
} else {
fprintf(stderr, "smbpasswd: cannot lookup user name for uid %u\n", (unsigned int)getuid());
exit(1);