rem: heap_release();
add: heap_release(&args);
context: main(int argc, char **argv){	if (argc > 1)		gVerbosity = atoi(argv[1]);	stage2_args args;	memset(&args, 0, sizeof(args));	if (heap_init(&args) < B_OK) {		fprintf(stderr, "Could not initialize heap.\n");		return -1;	}	printf("heap size == %ld\n", kHeapSize);	if (gVerbosity > 2)		dump_chunks();	puts("* simple allocation of 100 * 128 bytes");	void *array[100];	for (int32 i = 0; i < 100; i++) {		array[i] = test_malloc(128);		dump_allocated_chunk(i, array[i]);	}	if (gVerbosity > 2)		dump_chunks();	puts("* testing different deleting order");	if (gVerbosity > 2)		puts("- free 30 from the end (descending):");	for (int32 i = 100; i-- > 70; ) {		test_free(array[i]);		array[i] = NULL;	}	if (gVerbosity > 2) {		dump_chunks();		puts("- free 40 from the middle (ascending):");	}	for (int32 i = 30; i < 70; i++) {		test_free(array[i]);		array[i] = NULL;	}	if (gVerbosity > 2) {		dump_chunks();		puts("- free 30 from the start (ascending):");	}	for (int32 i = 0; i < 30; i++) {		test_free(array[i]);		array[i] = NULL;	}	if (gVerbosity > 2)		dump_chunks();	puts("* allocate until it fails");	int32 i = 0;	for (i = 0; i < 100; i++) {		array[i] = test_malloc(kHeapSize / 64);		if (array[i] == NULL) {			printf("\tallocation %ld failed - could allocate %ld bytes (64th should fail).\n", i + 1, (kHeapSize / 64) * (i + 1));			if (gVerbosity > 2)				dump_chunks();			while (i-- > 0) {				test_free(array[i]);				array[i] = NULL;			}			break;		} else			dump_allocated_chunk(i, array[i]);	}	if (i == 100)		fprintf(stderr, "could allocate more memory than in heap\n");	random_allocations(array, 768);	puts("* free memory again");	for (i = 0; i < 100; i++) {		test_free(array[i]);		array[i] = NULL;	}	for (size_t amount = 32; amount < 1024; amount *= 2) {		int32 count = random_allocations(array, amount);		puts("* random freeing");		while (count) {			i = int32(rand() * 100. / RAND_MAX);			if (array[i] == NULL)				continue;			test_free(array[i]);			array[i] = NULL;			count--;			if (gVerbosity > 2) {				puts("- freed one");				dump_chunks();			}		}	}	heap_release();	return 0;}