possible = amiga_block[AMIGA_RDBLIMIT]/32 +1;
used = (unsigned int *) malloc (sizeof (unsigned int) * (possible + 1));
+ if (!used) {
+ prom_printf("Can't allocate memory\n");
+ return;
+ }
for (i=0; i < possible; i++) used[i] = 0;
prom_blksize,
0 );
}
+ if (used)
+ free(used);
}
struct partition_t*