From 281931ea77d6a38606261d5056e7dba21ed6d357 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Tue, 21 Aug 2007 18:45:45 +0000 Subject: [PATCH] r24603: In case of error we need to free prefix_cache otherwise on re-init the first statement will return positively but prefix_cache_hashes would be NULL (This used to be commit fdc20894a0deb3c68b834e5d9d466873ca634bed) --- source3/smbd/mangle_hash2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source3/smbd/mangle_hash2.c b/source3/smbd/mangle_hash2.c index 299d7c99fa2..c3db112051a 100644 --- a/source3/smbd/mangle_hash2.c +++ b/source3/smbd/mangle_hash2.c @@ -163,6 +163,7 @@ static BOOL cache_init(void) prefix_cache_hashes = SMB_CALLOC_ARRAY(unsigned int, MANGLE_CACHE_SIZE); if (!prefix_cache_hashes) { + SAFE_FREE(prefix_cache); return False; } -- 2.11.4.GIT