Revert code to sero out memory ... best not to use zombies with leak checking

This commit is contained in:
rfm 2025-01-09 11:35:53 +00:00
parent 4ee212de63
commit ada4388be4

View file

@ -83,10 +83,6 @@
#endif
#endif
#if !defined(GNUSTEP_WITH_ASAN)
#define GNUSTEP_WITH_ASAN 0
#endif
/* platforms which do not support weak */
#if defined (__WIN32)
#define WEAK_ATTRIBUTE
@ -145,13 +141,6 @@ static NSMapTable *zombieMap = 0;
static void GSMakeZombie(NSObject *o, Class c)
{
#if GNUSTEP_WITH_ASAN
/* If we have a leak checker running, we zero out the memory of the
* zombie instance so that pointers inside it do not cause it to
* think there are still references to those locations from the zombie.
*/
memset(o, '\0', (size_t)[o sizeOfInstance]);
#endif
object_setClass(o, zombieClass);
if (0 != zombieMap)
{