summaryrefslogtreecommitdiffstats
path: root/c/src/exec/libcsupport/src/malloc.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-05-23 15:37:38 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-05-23 15:37:38 +0000
commit8b2ecf8546179dcdabbe691338ebcf3a43960663 (patch)
tree5837256081cce6ea30474b5cdbbf26f6821b362e /c/src/exec/libcsupport/src/malloc.c
parentadded code to insure that delay is always non-zero (diff)
downloadrtems-8b2ecf8546179dcdabbe691338ebcf3a43960663.tar.bz2
updates from Tony Bennett
Diffstat (limited to 'c/src/exec/libcsupport/src/malloc.c')
-rw-r--r--c/src/exec/libcsupport/src/malloc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/c/src/exec/libcsupport/src/malloc.c b/c/src/exec/libcsupport/src/malloc.c
index de63df6ea0..d1a80b431f 100644
--- a/c/src/exec/libcsupport/src/malloc.c
+++ b/c/src/exec/libcsupport/src/malloc.c
@@ -252,6 +252,9 @@ void *realloc(
}
new_area = malloc( size );
+
+ MSBUMP(malloc_calls, -1); /* subtract off the malloc */
+
if ( !new_area ) {
free( ptr );
return (void *) 0;