id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,blockedby,blocking 479,realloc deallocates argument pointer if new_area cannot be obtained,kamen,Joel Sherrill,"Accordingly to ""C Reference Manual"", p. 388, documentation of realloc: ""If the request cannot be satisfied, a null pointer is returned and the old region is not disturbed."" However, the RTEMS definition of realloc contains this: ----------------------------------- new_area = malloc( size ); MSBUMP(malloc_calls, -1); /* subtract off the malloc */ if ( !new_area ) { free( ptr ); return (void *) 0; } ----------------------------------- free( ptr ) is erroneous and should be removed. Release: RTEMS-4.5 ss20030417 Environment: host = Cygwin target = powerpc How-To-Repeat: Allocate an array and keep growing it with realloc until realloc fails.",defect,closed,normal,2,unspecified,4.5,major,fixed,,bugs@…,,