diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-11-26 21:11:19 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-11-26 21:11:19 +0000 |
commit | 85f3b4c1e488fe67fd47e60c4bc31abfe21e85c6 (patch) | |
tree | 2eefe4111e8dda099e517ad8756e3b86f3e7c3bd /cpukit/libcsupport | |
parent | 2007-11-26 Ray Xu <rayx.cn@gmail.com> (diff) | |
download | rtems-85f3b4c1e488fe67fd47e60c4bc31abfe21e85c6.tar.bz2 |
2007-11-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/malloc.c: Do not assert on free of bad pointer.
Diffstat (limited to 'cpukit/libcsupport')
-rw-r--r-- | cpukit/libcsupport/src/malloc.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cpukit/libcsupport/src/malloc.c b/cpukit/libcsupport/src/malloc.c index 7509001e82..4ce197599f 100644 --- a/cpukit/libcsupport/src/malloc.c +++ b/cpukit/libcsupport/src/malloc.c @@ -27,7 +27,6 @@ #include <stdio.h> #include <stdlib.h> #include <sys/types.h> -#include <assert.h> #include <errno.h> #include <string.h> @@ -493,8 +492,11 @@ void free( #endif if ( !_Protected_heap_Free( &RTEMS_Malloc_Heap, ptr ) ) { - errno = EINVAL; - assert( 0 ); + printk( "Program heap: free of bad pointer %p -- range %p - %p \n", + ptr, + RTEMS_Malloc_Heap.start, + RTEMS_Malloc_Heap.end + ); } } |