diff --git a/tests/heap_cmd/main.c b/tests/heap_cmd/main.c index 7aa4c54013..8fb24e4520 100644 --- a/tests/heap_cmd/main.c +++ b/tests/heap_cmd/main.c @@ -43,8 +43,8 @@ static int free_cmd(int argc, char **argv) unsigned int p = strtoul(argv[1], NULL, 16); void *ptr = (void *)p; + printf("freeing %p\n", ptr); free(ptr); - printf("freed %p\n", ptr); return 0; }