From: Jeremy Allison Date: Mon, 4 Jun 2007 19:58:11 +0000 (+0000) Subject: r23345: Stop Coverity from getting confused. X-Git-Tag: samba-4.0.0alpha6~801^2~5696 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=45dc5e1b92d4be8e7e1b613a09fc23746925e49b;p=thirdparty%2Fsamba.git r23345: Stop Coverity from getting confused. Jeremy. (This used to be commit 8e83e4267260201777c753c4e3849d65fd20ae8f) --- diff --git a/source3/nsswitch/winbindd_cache.c b/source3/nsswitch/winbindd_cache.c index aac0ef21b3b..eba34976754 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;