summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-11-26 21:11:19 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-11-26 21:11:19 +0000
commit85f3b4c1e488fe67fd47e60c4bc31abfe21e85c6 (patch)
tree2eefe4111e8dda099e517ad8756e3b86f3e7c3bd /cpukit
parent2007-11-26 Ray Xu <rayx.cn@gmail.com> (diff)
downloadrtems-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')
-rw-r--r--cpukit/ChangeLog4
-rw-r--r--cpukit/libcsupport/src/malloc.c8
2 files changed, 9 insertions, 3 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index 793f4d6a64..08fc49f599 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
+ );
}
}