summaryrefslogtreecommitdiff
path: root/source3/nsswitch/winbindd_rpc.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-05-03 12:29:32 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:19:52 -0500
commitb213b35e08cb53eec47ceae87a52d3b0832a5914 (patch)
treecb1a4812eafd25e1eb3d3feef25dfed62ba70931 /source3/nsswitch/winbindd_rpc.c
parentb48096e54618218d7484e70066d4f2459d4c172c (diff)
downloadsamba-b213b35e08cb53eec47ceae87a52d3b0832a5914.tar.gz
samba-b213b35e08cb53eec47ceae87a52d3b0832a5914.tar.bz2
samba-b213b35e08cb53eec47ceae87a52d3b0832a5914.zip
r22647: Avoid leaking a full info3 structure on each winbindd cached login by making
netsamlogon_cache_get() return a talloc'ed structure. Guenther (This used to be commit 5b149967cc3ab68057db015e67b688c9b9577f0d)
Diffstat (limited to 'source3/nsswitch/winbindd_rpc.c')
-rw-r--r--source3/nsswitch/winbindd_rpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_rpc.c b/source3/nsswitch/winbindd_rpc.c
index 4432676414..f408e1e15e 100644
--- a/source3/nsswitch/winbindd_rpc.c
+++ b/source3/nsswitch/winbindd_rpc.c
@@ -422,7 +422,7 @@ static NTSTATUS query_user(struct winbindd_domain *domain,
user_info->shell = NULL;
user_info->primary_gid = (gid_t)-1;
- SAFE_FREE(user);
+ TALLOC_FREE(user);
return NT_STATUS_OK;
}