diff options
author | Simo Sorce <idra@samba.org> | 2007-08-21 18:45:45 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:30:10 -0500 |
commit | fdc20894a0deb3c68b834e5d9d466873ca634bed (patch) | |
tree | 9251c4a381ab18e9051854ee68efbd4e7a39a652 /source/smbd/mangle_hash2.c | |
parent | d13eaa60f504987445b7333ef6972491c9483e6a (diff) | |
download | samba-fdc20894a0deb3c68b834e5d9d466873ca634bed.tar.gz samba-fdc20894a0deb3c68b834e5d9d466873ca634bed.tar.xz samba-fdc20894a0deb3c68b834e5d9d466873ca634bed.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
Diffstat (limited to 'source/smbd/mangle_hash2.c')
-rw-r--r-- | source/smbd/mangle_hash2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/smbd/mangle_hash2.c b/source/smbd/mangle_hash2.c index 299d7c99fa2..c3db112051a 100644 --- a/source/smbd/mangle_hash2.c +++ b/source/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; } |