Skip to content

Commit

Permalink
Fix use after free in tests and others
Browse files Browse the repository at this point in the history
  • Loading branch information
ypatia committed Mar 29, 2024
1 parent 63c8497 commit 2c18c45
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion test/src/test-capi-consolidation-plan.cc
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ ConsolidationPlanFx::ConsolidationPlanFx()
ConsolidationPlanFx::~ConsolidationPlanFx() {
test::vfs_test_remove_temp_dir(ctx_c_, vfs_c_, fs_vec_[0]->temp_dir());
test::vfs_test_close(fs_vec_, ctx_c_, vfs_c_).ok();
tiledb_ctx_free(&ctx_c_);
tiledb_vfs_free(&vfs_c_);
}

Expand Down
7 changes: 6 additions & 1 deletion test/src/unit-capi-serialized_queries_using_subarray.cc
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,12 @@ struct SerializationFx {
TEST_CASE_METHOD(
SerializationFx,
"subarray - Query serialization, dense",
"[query][dense][serialization][rest-fails][sc-40489]") {
"[query][dense][serialization][rest][sc-40489]") {
if (!vfs_test_setup_.is_rest()) {
SUCCEED("sc-40489: this test passes on remote arrays only");
return;
}

create_array(TILEDB_DENSE);
auto expected_results = write_dense_array();
check_subarray_stats(2, 2);
Expand Down

0 comments on commit 2c18c45

Please sign in to comment.