summaryrefslogtreecommitdiff
path: root/source3/smbd/mangle.c
diff options
context:
space:
mode:
authorChristopher R. Hertel <crh@samba.org>2000-06-13 19:29:32 +0000
committerChristopher R. Hertel <crh@samba.org>2000-06-13 19:29:32 +0000
commit898c5ddf071035418dcf3f351a9ecc9904069335 (patch)
tree45899cae1a31b8639949a687fb09e9c5fd93fbc0 /source3/smbd/mangle.c
parentf1698562f44ac8d0ff54b760c12caa4471647d6e (diff)
downloadsamba-898c5ddf071035418dcf3f351a9ecc9904069335.tar.gz
samba-898c5ddf071035418dcf3f351a9ecc9904069335.tar.bz2
samba-898c5ddf071035418dcf3f351a9ecc9904069335.zip
Removed a patch that Andrew had added because 'insure' was incorrectly
reporting a memory leak in the cache module. I've modified the cache code to prevent insure getting confused, so the patch can now be removed. (This used to be commit 50599b0fa2b78109e3bd2cf50007dc69c4059955)
Diffstat (limited to 'source3/smbd/mangle.c')
-rw-r--r--source3/smbd/mangle.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/source3/smbd/mangle.c b/source3/smbd/mangle.c
index 8ac91d49c8..1cc602dc05 100644
--- a/source3/smbd/mangle.c
+++ b/source3/smbd/mangle.c
@@ -576,15 +576,6 @@ static void cache_mangled_name( char *mangled_name, char *raw_name )
s2 = (char *)&(s1[mangled_len + 1]);
(void)StrnCpy( s1, mangled_name, mangled_len );
(void)StrnCpy( s2, raw_name, raw_len );
-
- /* possibly delete an old entry - this avoids a memory leak in the
- ubi code to do with overwriting existing entries.
-
- remove this test when ubi gets fixed */
- if (ubi_cacheGet(mangled_cache, s1)) {
- ubi_cacheDelete(mangled_cache, s1);
- }
-
ubi_cachePut( mangled_cache, i, new_entry, s1 );
} /* cache_mangled_name */