You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2022/10/21 00:33:11 UTC

[doris] branch master updated: [fix](jsonreader) release memory of both value and parse allocator (#13513)

This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 3dd00df24b [fix](jsonreader) release memory of both value and parse allocator (#13513)
3dd00df24b is described below

commit 3dd00df24b9cd83e5aecca336b76e1ce9a0bfd5e
Author: Yongqiang YANG <98...@users.noreply.github.com>
AuthorDate: Fri Oct 21 08:33:05 2022 +0800

    [fix](jsonreader) release memory of both value and parse allocator (#13513)
---
 be/src/exec/json_scanner.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/be/src/exec/json_scanner.cpp b/be/src/exec/json_scanner.cpp
index df9c80e0cb..3e7363bdff 100644
--- a/be/src/exec/json_scanner.cpp
+++ b/be/src/exec/json_scanner.cpp
@@ -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
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org