summaryrefslogtreecommitdiffstats
path: root/core/test
diff options
context:
space:
mode:
Diffstat (limited to 'core/test')
-rw-r--r--core/test/run-malloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/test/run-malloc.c b/core/test/run-malloc.c
index 6e1679c5..d79e6f94 100644
--- a/core/test/run-malloc.c
+++ b/core/test/run-malloc.c
@@ -122,7 +122,7 @@ int main(void)
p2 = realloc(p, 200);
assert(p2 == p);
assert(!skiboot_heap.free_list_lock.lock_val);
- free(p);
+ free(p2);
assert(!skiboot_heap.free_list_lock.lock_val);
assert(heap_empty());
@@ -178,7 +178,7 @@ int main(void)
pr = realloc(p,216);
assert(pr);
free(p3);
- free(p);
+ free(pr);
free(p4);
assert(heap_empty());
assert(!skiboot_heap.free_list_lock.lock_val);
OpenPOWER on IntegriCloud