r23345: Stop Coverity from getting confused.
authorJeremy Allison <jra@samba.org>
Mon, 4 Jun 2007 19:58:11 +0000 (19:58 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:23:08 +0000 (12:23 -0500)
Jeremy.

source/nsswitch/winbindd_cache.c

index aac0ef21b3be9931dd72aa51ccc9c58ca4095b05..eba349767548afd86831c56ca39dea698bc74a6f 100644 (file)
@@ -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;