[RTEMS Project] #3755: leak in realloc

RTEMS trac trac at rtems.org
Mon Aug 5 16:58:40 UTC 2019

#3755: leak in realloc
 Reporter:  Jeffrey Hill  |       Owner:  (none)
     Type:  defect        |      Status:  new
 Priority:  normal        |   Milestone:
Component:  score         |     Version:  4.11
 Severity:  normal        |  Resolution:
 Keywords:  realloc leak  |  Blocked By:
 Blocking:                |

Comment (by Gedare Bloom):

 It looks to me like `_Heap_Resize_block_checked()` is not increasing
 `lifetime_allocated` and probably should be increasing it by `new_size -
 old_size` before returning success.

Ticket URL: <http://devel.rtems.org/ticket/3755#comment:17>
RTEMS Project <http://www.rtems.org/>
RTEMS Project

More information about the bugs mailing list