[fix](jsonreader) release memory of both value and parse allocator (#13513)

This commit is contained in:
Yongqiang YANG
2022-10-21 08:33:05 +08:00
committed by GitHub
parent d2be5096d6
commit 3dd00df24b

View File

@ -354,7 +354,8 @@ Status JsonReader::_parse_json_doc(size_t* size, bool* eof) {
}
// clear memory here.
_origin_json_doc.GetAllocator().Clear();
_value_allocator.Clear();
_parse_allocator.Clear();
bool has_parse_error = false;
// parse jsondata to JsonDoc