Hello Thejaswani Putta, Aaron Durbin, Subrata Banik, Selma Bensaid, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/37919
to look at the new patch set (#10).
Change subject: lib/malloc: Implement a simple free() only for last malloc() ......................................................................
lib/malloc: Implement a simple free() only for last malloc()
Implement a free() that supports only the last malloc(). Rewind the heap to the last allocation point if the ptr to be freed is matching the end of heap before last malloc(). With current situation, since free() is no-op, every call to malloc() is a memory leak.
BUG=b:140124451 TEST=Wrote a test function to do malloc and free operations.
Change-Id: I6d43cf54b79e6897cf6882335730b2310e4eae45 Signed-off-by: Bora Guvendik bora.guvendik@intel.com --- M src/include/stdlib.h M src/lib/malloc.c 2 files changed, 30 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/19/37919/10