diff options
author | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-11-16 21:24:26 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-11-16 21:24:26 +0100 |
commit | e6d455a3e6847b52c5fb901e1636f207ffe7ced7 (patch) | |
tree | a7aa084f5ee467d22aea2169efca6d5a7959dfb7 /sys/src/libsec | |
parent | 9e9d694fbd8fe8e2e0b68aec0f49416e671adf31 (diff) |
libsec: setmalloctag
Diffstat (limited to 'sys/src/libsec')
-rw-r--r-- | sys/src/libsec/port/tlshand.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |