summaryrefslogtreecommitdiffstats
path: root/source/nsswitch/winbindd_cred_cache.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2006-02-20 17:59:58 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:10:14 -0500
commitb65be8874a2efe5a4b167448960a4fcf6bd995e2 (patch)
tree5a367e205b07d14766db02c41211346d5b6f3133 /source/nsswitch/winbindd_cred_cache.c
parent69fb189a6b9947069afebb15d6ee6f2f20d15171 (diff)
downloadsamba-b65be8874a2efe5a4b167448960a4fcf6bd995e2.tar.gz
samba-b65be8874a2efe5a4b167448960a4fcf6bd995e2.tar.xz
samba-b65be8874a2efe5a4b167448960a4fcf6bd995e2.zip
r13571: Replace all calls to talloc_free() with thye TALLOC_FREE()
macro which sets the freed pointer to NULL.
Diffstat (limited to 'source/nsswitch/winbindd_cred_cache.c')
-rw-r--r--source/nsswitch/winbindd_cred_cache.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source/nsswitch/winbindd_cred_cache.c b/source/nsswitch/winbindd_cred_cache.c
index a8aab04031a..991718fb26a 100644
--- a/source/nsswitch/winbindd_cred_cache.c
+++ b/source/nsswitch/winbindd_cred_cache.c
@@ -73,8 +73,9 @@ NTSTATUS remove_ccache_by_ccname(const char *ccname)
for (entry = ccache_list; entry; entry = entry->next) {
if (strequal(entry->ccname, ccname)) {
DLIST_REMOVE(ccache_list, entry);
- talloc_free(entry->event); /* unregisters events */
- return talloc_free(entry) ? NT_STATUS_OK : NT_STATUS_UNSUCCESSFUL;
+ TALLOC_FREE(entry->event); /* unregisters events */
+ TALLOC_FREE(entry);
+ return NT_STATUS_OK;
}
}
return NT_STATUS_OBJECT_NAME_NOT_FOUND;
@@ -94,7 +95,7 @@ static void krb5_ticket_refresh_handler(struct timed_event *te,
DEBUG(10,("krb5_ticket_refresh_handler called\n"));
DEBUGADD(10,("event called for: %s, %s\n", entry->ccname, entry->username));
- talloc_free(entry->event);
+ TALLOC_FREE(entry->event);
#ifdef HAVE_KRB5
@@ -117,7 +118,7 @@ static void krb5_ticket_refresh_handler(struct timed_event *te,
if (ret) {
DEBUG(3,("could not re-kinit: %s\n", error_message(ret)));
- talloc_free(entry->event);
+ TALLOC_FREE(entry->event);
return;
}