From 7b258d284fc3ddff0be98c0bc3a43c652bd4c730 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 6 May 2004 23:11:20 +0000 Subject: r535: Another memleak fix from kawasa_r@itg.hitachi.co.jp Jeremy. (This used to be commit 2d52562691d59b44546225454f6fff5b64552de8) --- source3/nsswitch/winbindd_cache.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3') 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; -- cgit