1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

core: fix file not closed when exception in FS

This commit is contained in:
Vladislav Sovrasov
2017-08-07 16:20:38 +03:00
committed by sovrasov
parent aa54acd54d
commit 5e68b28ad3
2 changed files with 4 additions and 2 deletions
+1
View File
@@ -4525,6 +4525,7 @@ cvOpenFileStorage( const char* query, CvMemStorage* dststorage, int flags, const
}
catch (...)
{
fs->is_opened = true;
cvReleaseFileStorage( &fs );
throw;
}