Index: uspace/app/mkminix/mkminix.c
===================================================================
--- uspace/app/mkminix/mkminix.c	(revision 8ceba1e4d85364d1f4f4715634a5ddcafb2219eb)
+++ uspace/app/mkminix/mkminix.c	(revision c4c7f5adeee8ccadf8750e0d5713917a30d83a6e)
@@ -124,4 +124,5 @@
 	/*Default block size is 4Kb*/
 	sb.block_size = MFS_MAX_BLOCKSIZE;
+	sb.dirsize = MFS3_DIRSIZE;
 	sb.n_inodes = 0;
 	sb.longnames = false;
@@ -385,4 +386,5 @@
 	int rc;
 
+	/*Compute offset of the first inode table block*/
 	itable_off = FIRST_ZONE(sb->block_size);
 	itable_off += sb->zbmap_blocks + sb->ibmap_blocks;
@@ -594,4 +596,7 @@
 			return rc;
 	}
+
+	free(ibmap_buf);
+	free(zbmap_buf);
 
 	return rc;
