Fixed a bug where a directory was not closed properly resulting in errno

24 sometimes
This commit is contained in:
Celine Mercier
2019-08-18 19:46:52 +02:00
parent 5f20be44b2
commit af7cecf59f

View File

@ -1995,6 +1995,14 @@ OBIDMS_column_header_p obi_column_get_header_from_name(OBIDMS_p dms, const char*
return NULL;
}
// Close column directory
if (obi_close_column_directory(column_directory) < 0)
{
obi_set_errno(OBICOL_UNKNOWN_ERROR);
obidebug(1, "\nError closing a column directory when reading a column header");
return NULL;
}
return header;
}