improve print_malloc