mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 17:32:13 -05:00
#5015 libecl : Make sure *.UNSMRY is closed properly after data is read
This commit is contained in:
1 parent
3d6b53841d
commit
f1070cdb82
1 file changed
+4
+4
@@ -169,6 +169,10 @@ void ecl_file_view_index_fload_kw(const ecl_file_view_type * ecl_file_view, cons
|
||||
int element_count = ecl_file_kw_get_size(file_kw);
|
||||
|
||||
ecl_kw_fread_indexed_data(ecl_file_view->fortio, offset + ECL_KW_HEADER_FORTIO_SIZE, data_type, element_count, index_map, io_buffer);
|
||||
|
||||
if (ecl_file_view_flags_set(ecl_file_view, ECL_FILE_CLOSE_STREAM))
|
||||
fortio_fclose_stream(ecl_file_view->fortio);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user