Index: uspace/srv/fs/fat/fat_ops.c
===================================================================
--- uspace/srv/fs/fat/fat_ops.c	(revision b12edd171bf51b978f61e15b15c2ccd17b8662ba)
+++ uspace/srv/fs/fat/fat_ops.c	(revision 010b52d861f50e5344d6b50b363be69e23e5f313)
@@ -415,4 +415,5 @@
 		}
 	}
+	(void) fat_directory_close(&di);
 	*rfn = NULL;
 	return EOK;
