xinyiZzz commented on code in PR #32039:
URL: https://github.com/apache/doris/pull/32039#discussion_r1523109968


##########
be/src/vec/exec/scan/scanner_context.h:
##########
@@ -103,7 +111,15 @@ class ScannerContext : public 
std::enable_shared_from_this<ScannerContext>,
                    int64_t max_bytes_in_blocks_queue, const int 
num_parallel_instances = 1,
                    pipeline::ScanLocalStateBase* local_state = nullptr);
 
-    virtual ~ScannerContext() = default;
+    ~ScannerContext() override {
+        
SCOPED_SWITCH_THREAD_MEM_TRACKER_LIMITER(_query_thread_context.query_mem_tracker);
+        _blocks_queue.clear();
+        vectorized::BlockUPtr block;
+        while (_free_blocks.try_dequeue(block)) {

Review Comment:
   moodycamel::ConcurrentQueue 这个 queue 没有clear,析构方法外边也调不了,只能自己析构
   我这里需要手动释放内存



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to