summaryrefslogtreecommitdiffstats
path: root/source/nsswitch
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-05-06 23:11:20 +0000
committerJeremy Allison <jra@samba.org>2004-05-06 23:11:20 +0000
commit90a0ed970d5c1d0b938d47425b51fb82d05b5b12 (patch)
treecb7e428ba97bea966211c16f9268b7ed385641d9 /source/nsswitch
parent84456d131b4ef78ee12190e4a5ecc6067ad72356 (diff)
downloadsamba-90a0ed970d5c1d0b938d47425b51fb82d05b5b12.tar.gz
samba-90a0ed970d5c1d0b938d47425b51fb82d05b5b12.tar.xz
samba-90a0ed970d5c1d0b938d47425b51fb82d05b5b12.zip
r535: Another memleak fix from kawasa_r@itg.hitachi.co.jp
Jeremy.
Diffstat (limited to 'source/nsswitch')
-rw-r--r--source/nsswitch/winbindd_cache.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/nsswitch/winbindd_cache.c b/source/nsswitch/winbindd_cache.c
index e10fa2255c0..877fa2d995c 100644
--- a/source/nsswitch/winbindd_cache.c
+++ b/source/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;