forked from Imagelibrary/rtems
2007-11-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/malloc.c: Do not assert on free of bad pointer.
This commit is contained in:
@@ -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>
|
2007-11-26 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
* score/include/rtems/score/thread.h: Fix spelling error.
|
* score/include/rtems/score/thread.h: Fix spelling error.
|
||||||
|
|||||||
@@ -27,7 +27,6 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <assert.h>
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
@@ -493,8 +492,11 @@ void free(
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
if ( !_Protected_heap_Free( &RTEMS_Malloc_Heap, ptr ) ) {
|
if ( !_Protected_heap_Free( &RTEMS_Malloc_Heap, ptr ) ) {
|
||||||
errno = EINVAL;
|
printk( "Program heap: free of bad pointer %p -- range %p - %p \n",
|
||||||
assert( 0 );
|
ptr,
|
||||||
|
RTEMS_Malloc_Heap.start,
|
||||||
|
RTEMS_Malloc_Heap.end
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user