Fixed a bug where a directory was not closed properly resulting in errno
24 sometimes
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user