Commit b224aee
authored
[cppapi] Use the right API to free stats strings. (#5366)
[SC-59016](https://app.shortcut.com/tiledb-inc/story/59016/cppapi-getting-context-and-query-stats-should-not-use-free)
This PR updates to use `tiledb_stats_free_str` instead of `free` to free
stats strings in the C++ API. Will fix failures for cases when the
application's and the Core's `free` functions are different (such as
when using debug-mode CRT on Windows with the prebuilt `tiledb.dll`).
---
TYPE: BUG
DESC: Fix heap corruption when getting context and query stats from C++
under certain circumstances.1 parent 738f238 commit b224aee
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
| 239 | + | |
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
991 | 991 | | |
992 | 992 | | |
993 | 993 | | |
994 | | - | |
| 994 | + | |
995 | 995 | | |
996 | 996 | | |
997 | 997 | | |
| |||
0 commit comments