зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
c0a4cb4b07
Коммит
33c3c7354c
|
@ -51,9 +51,10 @@ mar_read_entire_file(const char * filePath, uint32_t maxSize,
|
|||
}
|
||||
}
|
||||
}
|
||||
fclose(f);
|
||||
}
|
||||
|
||||
fclose(f);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче