Commit 71cd59f7 authored by Celine Mercier's avatar Celine Mercier

close file descriptors that don't refer to a directory (as those can not

be reopened)
parent 719ef614
......@@ -299,7 +299,7 @@ static obiversion_t obi_get_new_version_number(OBIDMS_column_group_p column_grou
return -1;
}
//close(version_file_descriptor);
close(version_file_descriptor);
//close(column_dir_file_descriptor);
free(version_file_name);
......@@ -414,7 +414,7 @@ static int create_version_file(OBIDMS_column_group_p column_group)
return -1;
}
//close(version_file_descriptor);
close(version_file_descriptor);
//close(column_dir_file_descriptor);
free(version_file_name);
......@@ -514,7 +514,7 @@ obiversion_t obi_get_latest_version_number(OBIDMS_column_group_p column_group)
}
free(version_file_name);
//close(version_file_descriptor);
close(version_file_descriptor);
//close(column_dir_file_descriptor);
return latest_version_number;
......@@ -672,9 +672,8 @@ OBIDMS_column_p obi_create_column(OBIDMS_p dms,
strncpy(header->name, column_name, OBIDMS_MAX_COLNAME);
free(column_file_name);
//obi_close_column_group(column_group);
//close(column_dir_file_descriptor);
//close(column_file_descriptor);
close(column_file_descriptor);
return new_column;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment