diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-11-26 21:13:02 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-11-26 21:13:02 +0000 |
commit | 8802a9b3d1b603fc3d9339d5d29c955f43470cb4 (patch) | |
tree | b2eba30996599e6d64a43ba0028c73e53254d0c5 /cpukit | |
parent | 2007-11-26 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-8802a9b3d1b603fc3d9339d5d29c955f43470cb4.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')
-rw-r--r-- | cpukit/ChangeLog | 4 | ||||
-rw-r--r-- | cpukit/libcsupport/src/malloc.c | 8 |
2 files changed, 9 insertions, 3 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 7926047db4..f4eab759ee 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,7 @@ +2007-11-26 Joel Sherrill <joel.sherrill@oarcorp.com> + + * libcsupport/src/malloc.c: Do not assert on free of bad pointer. + 2007-11-26 Joel Sherrill <joel.sherrill@OARcorp.com> * score/include/rtems/score/thread.h: Fix spelling error. 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 + ); } } |