if (block == NULL) {
PERR("No hay memoria");
*err = EMUFS_ERROR_OUT_OF_MEMORY;
+ fclose(file);
return NULL;
}
if (fread(block, efs->tam_bloque, 1, file) != 1) {
free(block);
+ fclose(file);
PERR("Error al leer bloque");
*err = EMUFS_ERROR_FILE_READ;
return NULL;