Skip to content

Commit

Permalink
Added examples in the C API documentation
Browse files Browse the repository at this point in the history
PR #410

(cherry picked from commit 764610a)
  • Loading branch information
stavrospapadopoulos committed Mar 10, 2018
1 parent 981e3d5 commit 8211e3c
Show file tree
Hide file tree
Showing 2 changed files with 1,194 additions and 181 deletions.
4 changes: 3 additions & 1 deletion tiledb/sm/c_api/tiledb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -668,8 +668,10 @@ int tiledb_ctx_get_config(tiledb_ctx_t* ctx, tiledb_config_t** config) {

// Create storage manager
(*config)->config_ = new (std::nothrow) tiledb::sm::Config();
if ((*config)->config_ == nullptr)
if ((*config)->config_ == nullptr) {
delete (*config);
return TILEDB_OOM;
}

*((*config)->config_) = ctx->storage_manager_->config();

Expand Down
Loading

0 comments on commit 8211e3c

Please sign in to comment.