r535: Another memleak fix from kawasa_r@itg.hitachi.co.jp
authorJeremy Allison <jra@samba.org>
Thu, 6 May 2004 23:11:20 +0000 (23:11 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:51:27 +0000 (10:51 -0500)
Jeremy.
(This used to be commit 2d52562691d59b44546225454f6fff5b64552de8)

source3/nsswitch/winbindd_cache.c

index e10fa2255c0f29cd77933e12696e87ae15bff096..877fa2d995c15d4f940c94495e56884b4766db4f 100644 (file)
@@ -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;