We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e822b5 commit 6087180Copy full SHA for 6087180
src/generic/ondemand/json_iterator-inl.h
@@ -27,7 +27,10 @@ simdjson_really_inline json_iterator::json_iterator(ondemand::parser *_parser) n
27
// Release the string buf so it can be reused by the next document
28
logger::log_headers();
29
}
30
-simdjson_really_inline json_iterator::~json_iterator() noexcept = default;
+simdjson_really_inline json_iterator::~json_iterator() noexcept {
31
+ // If we have any leases out when we die, it's an error
32
+ SIMDJSON_ASSUME(active_lease_depth == 0);
33
+}
34
35
SIMDJSON_WARN_UNUSED simdjson_really_inline simdjson_result<bool> json_iterator::start_object() noexcept {
36
if (*advance() != '{') { logger::log_error(*this, "Not an object"); return INCORRECT_TYPE; }
0 commit comments