Bug 1161640 - |mar_read_entire_file| can leak file descriptor (command line build utility). Close descriptor when fseeko fails. r=rstrong

This commit is contained in:
Josios 2015-05-07 10:34:38 -07:00
Родитель c0a4cb4b07
Коммит 33c3c7354c
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -51,9 +51,10 @@ mar_read_entire_file(const char * filePath, uint32_t maxSize,
}
}
}
fclose(f);
}
fclose(f);
return result;
}