diff options
Diffstat (limited to 'core/test')
-rw-r--r-- | core/test/run-malloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/test/run-malloc.c b/core/test/run-malloc.c index 46231088..6e1679c5 100644 --- a/core/test/run-malloc.c +++ b/core/test/run-malloc.c @@ -134,7 +134,7 @@ int main(void) p2 = realloc(p, 1); assert(!skiboot_heap.free_list_lock.lock_val); assert(p2 == p); - free(p); + free(p2); assert(!skiboot_heap.free_list_lock.lock_val); assert(heap_empty()); |