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:
committed by
sovrasov
parent
aa54acd54d
commit
5e68b28ad3
@@ -4525,6 +4525,7 @@ cvOpenFileStorage( const char* query, CvMemStorage* dststorage, int flags, const
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
fs->is_opened = true;
|
||||
cvReleaseFileStorage( &fs );
|
||||
throw;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user