From 45dc5e1b92d4be8e7e1b613a09fc23746925e49b Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 4 Jun 2007 19:58:11 +0000 Subject: r23345: Stop Coverity from getting confused. Jeremy. (This used to be commit 8e83e4267260201777c753c4e3849d65fd20ae8f) --- source3/nsswitch/winbindd_cache.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/nsswitch/winbindd_cache.c') diff --git a/source3/nsswitch/winbindd_cache.c b/source3/nsswitch/winbindd_cache.c index aac0ef21b3..eba3497675 100644 --- a/source3/nsswitch/winbindd_cache.c +++ b/source3/nsswitch/winbindd_cache.c @@ -3617,6 +3617,7 @@ static int pack_tdc_domains( struct winbindd_tdc_domain *domains, } if ( buflen < len ) { + SAFE_FREE(buffer); if ( (buffer = SMB_MALLOC_ARRAY(unsigned char, len)) == NULL ) { DEBUG(0,("pack_tdc_domains: failed to alloc buffer!\n")); buflen = -1; -- cgit