You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2022/04/08 02:31:28 UTC

[incubator-doris] 14/14: [fix](ut)(memory-leak) Fix be asan ut failed and hdfs file reader memory leak (#8905)

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

morningman pushed a commit to branch dev-1.0.1
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git

commit 075f9e6420641289e62250b51e0080ab31acd4b2
Author: morningman <mo...@163.com>
AuthorDate: Fri Apr 8 10:29:19 2022 +0800

    [fix](ut)(memory-leak) Fix be asan ut failed and hdfs file reader memory leak (#8905)
---
 be/src/exec/hdfs_file_reader.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/be/src/exec/hdfs_file_reader.cpp b/be/src/exec/hdfs_file_reader.cpp
index 4399e639f6..a047df6236 100644
--- a/be/src/exec/hdfs_file_reader.cpp
+++ b/be/src/exec/hdfs_file_reader.cpp
@@ -65,6 +65,7 @@ Status HdfsFileReader::connect() {
         }
     }
     _hdfs_fs = hdfsBuilderConnect(hdfs_builder);
+    hdfsFreeBuilder(hdfs_builder);
     if (_hdfs_fs == nullptr) {
         std::stringstream ss;
         ss << "connect failed. " << _namenode;


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