diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-05-23 15:37:38 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-05-23 15:37:38 +0000 |
commit | 8b2ecf8546179dcdabbe691338ebcf3a43960663 (patch) | |
tree | 5837256081cce6ea30474b5cdbbf26f6821b362e /c/src/exec/libcsupport/src/malloc.c | |
parent | added code to insure that delay is always non-zero (diff) | |
download | rtems-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.c | 3 |
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; |