From e6d455a3e6847b52c5fb901e1636f207ffe7ced7 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Wed, 16 Nov 2011 21:24:26 +0100 Subject: [PATCH] libsec: setmalloctag --- sys/src/libsec/port/tlshand.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/src/libsec/port/tlshand.c b/sys/src/libsec/port/tlshand.c index b7457015d..0d690aff1 100644 --- a/sys/src/libsec/port/tlshand.c +++ b/sys/src/libsec/port/tlshand.c @@ -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); }