Changeset 8802a9b in rtems


Ignore:
Timestamp:
Nov 26, 2007, 9:13:02 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.8
Children:
c4254e9
Parents:
3a9e70c
Message:

2007-11-26 Joel Sherrill <joel.sherrill@…>

  • libcsupport/src/malloc.c: Do not assert on free of bad pointer.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r3a9e70c r8802a9b  
     12007-11-26      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * libcsupport/src/malloc.c: Do not assert on free of bad pointer.
     4
    152007-11-26      Joel Sherrill <joel.sherrill@OARcorp.com>
    26
  • cpukit/libcsupport/src/malloc.c

    r3a9e70c r8802a9b  
    2828#include <stdlib.h>
    2929#include <sys/types.h>
    30 #include <assert.h>
    3130#include <errno.h>
    3231#include <string.h>
     
    494493
    495494  if ( !_Protected_heap_Free( &RTEMS_Malloc_Heap, ptr ) ) {
    496     errno = EINVAL;
    497     assert( 0 );
     495    printk( "Program heap: free of bad pointer %p -- range %p - %p \n",
     496      ptr,
     497      RTEMS_Malloc_Heap.start,
     498      RTEMS_Malloc_Heap.end
     499    );
    498500  }
    499501}
Note: See TracChangeset for help on using the changeset viewer.