summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2007-08-21 18:45:45 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:30:10 -0500
commit281931ea77d6a38606261d5056e7dba21ed6d357 (patch)
tree6d170d9e15588a13f6712aefb8030ef7ded89c58
parentb9a7a2b966f3fb9757d8ff7e4c94e78d6728e74a (diff)
downloadsamba-281931ea77d6a38606261d5056e7dba21ed6d357.tar.gz
samba-281931ea77d6a38606261d5056e7dba21ed6d357.tar.bz2
samba-281931ea77d6a38606261d5056e7dba21ed6d357.zip
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)
-rw-r--r--source3/smbd/mangle_hash2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/smbd/mangle_hash2.c b/source3/smbd/mangle_hash2.c
index 299d7c99fa..c3db112051 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;
}