1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

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 commit is contained in:
Christopher R. Hertel 0001-01-01 00:00:00 +00:00
parent 7d0f925858
commit 50599b0fa2

View File

@ -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 */