libsec: setmalloctag

front
cinap_lenrek 2011-11-16 21:24:26 +01:00
parent 9e9d694fbd
commit e6d455a3e6
1 changed files with 2 additions and 0 deletions

View File

@ -2195,6 +2195,7 @@ emalloc(int n)
exits("out of memory");
}
memset(p, 0, n);
setmalloctag(p, getcallerpc(&n));
return p;
}
@ -2208,6 +2209,7 @@ erealloc(void *ReallocP, int ReallocN)
else if(!(ReallocP = realloc(ReallocP, ReallocN))){
exits("out of memory");
}
setrealloctag(ReallocP, getcallerpc(&ReallocP));
return(ReallocP);
}