diff options
Diffstat (limited to 'cpukit/libcsupport/src/free.c')
-rw-r--r-- | cpukit/libcsupport/src/free.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/cpukit/libcsupport/src/free.c b/cpukit/libcsupport/src/free.c index 2a7e3d931d..63eb7b8037 100644 --- a/cpukit/libcsupport/src/free.c +++ b/cpukit/libcsupport/src/free.c @@ -24,12 +24,12 @@ #include <rtems/score/sysstate.h> +#include "malloc_p.h" + void free( void *ptr ) { - MSBUMP(free_calls, 1); - if ( !ptr ) return; @@ -41,12 +41,6 @@ void free( return; } - /* - * If configured, update the statistics - */ - if ( rtems_malloc_statistics_helpers ) - (*rtems_malloc_statistics_helpers->at_free)(ptr); - if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) { printk( "Program heap: free of bad pointer %p -- range %p - %p \n", ptr, |