message: dup c_str before return
diff: @@ -489,7 +489,7 @@ idx_t duckdb_arrow_rows_changed(duckdb_arrow result) {
  const char *duckdb_query_arrow_error(duckdb_arrow result) {
  auto wrapper = (ArrowResultWrapper *)result;
  - return wrapper->result->error.c_str();
  + return strdup(wrapper->result->error.c_str());
  }
  void duckdb_destroy_arrow(duckdb_arrow *result) {
  @@ -568,7 +568,7 @@ const char *duckdb_prepare_error(duckdb_prepared_statement prepared_statement) {
  if (!wrapper || !wrapper->statement || wrapper->statement->success) {
  return nullptr;
  }
  - return wrapper->statement->error.c_str();
  + return strdup(wrapper->statement->error.c_str());
  }
  duckdb_state duckdb_nparams(duckdb_prepared_statement prepared_statement, idx_t *nparams_out) {
  