summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-05-06 23:11:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:51:27 -0500
commit7b258d284fc3ddff0be98c0bc3a43c652bd4c730 (patch)
treeea616458f6e37bc7ff6c1c01cc76b2bd3e481de6 /source3
parent13aa693f35336db17df1d7cb55ab86efbcc230ee (diff)
downloadsamba-7b258d284fc3ddff0be98c0bc3a43c652bd4c730.tar.gz
samba-7b258d284fc3ddff0be98c0bc3a43c652bd4c730.tar.bz2
samba-7b258d284fc3ddff0be98c0bc3a43c652bd4c730.zip
r535: Another memleak fix from kawasa_r@itg.hitachi.co.jp
Jeremy. (This used to be commit 2d52562691d59b44546225454f6fff5b64552de8)
Diffstat (limited to 'source3')
-rw-r--r--source3/nsswitch/winbindd_cache.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd_cache.c b/source3/nsswitch/winbindd_cache.c
index e10fa2255c..877fa2d995 100644
--- a/source3/nsswitch/winbindd_cache.c
+++ b/source3/nsswitch/winbindd_cache.c
@@ -276,6 +276,8 @@ static NTSTATUS fetch_cache_seqnum( struct winbindd_domain *domain, time_t now )
domain->sequence_number = IVAL(data.dptr, 0);
domain->last_seq_check = IVAL(data.dptr, 4);
+ SAFE_FREE(data.dptr);
+
/* have we expired? */
time_diff = now - domain->last_seq_check;