summaryrefslogtreecommitdiff
path: root/util/autoport/rce823.go
diff options
context:
space:
mode:
authorBora Guvendik <bora.guvendik@intel.com>2019-12-23 16:44:06 -0800
committerAaron Durbin <adurbin@chromium.org>2020-01-02 18:22:53 +0000
commita347ea3787284483158aaa77846ab0b34c017fdb (patch)
tree82a8ac385958115c30871b43eb5be232bf8c8aed /util/autoport/rce823.go
parent320d6e88afa56f2c11d9118faf6e47036fcc6540 (diff)
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> Reviewed-on: https://review.coreboot.org/c/coreboot/+/37919 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'util/autoport/rce823.go')
0 files changed, 0 insertions, 0 deletions