Add back dummy free()

GNU CC coverage needs free() and it's highly desirable to leave
the code as genuine as possible.

Change-Id: I4c821b9d211ef7a8e7168dc5e3116730693999c6
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/2051
Tested-by: build bot (Jenkins)
Reviewed-by: David Hendricks <dhendrix@chromium.org>
This commit is contained in:
Stefan Reinauer 2012-12-18 14:27:50 -08:00 committed by Stefan Reinauer
parent 5fa7ea419b
commit e09f7ef00a
1 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,8 @@
#if !defined(__PRE_RAM__) #if !defined(__PRE_RAM__)
void *memalign(size_t boundary, size_t size); void *memalign(size_t boundary, size_t size);
void *malloc(size_t size); void *malloc(size_t size);
/* We never free memory */
static inline void free(void *ptr) {}
#endif #endif
#endif /* STDLIB_H */ #endif /* STDLIB_H */