[
https://issues.apache.org/jira/browse/IMPALA-14443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Zoltán Borók-Nagy reassigned IMPALA-14443:
------------------------------------------
Assignee: Zoltán Borók-Nagy
> Fix potential memory leak in TmpFileMgr
> ---------------------------------------
>
> Key: IMPALA-14443
> URL: https://issues.apache.org/jira/browse/IMPALA-14443
> Project: IMPALA
> Issue Type: Bug
> Reporter: Zoltán Borók-Nagy
> Assignee: Zoltán Borók-Nagy
> Priority: Major
>
> Clang static analyzer found the following memory leak:
> {noformat}
> TmpFileRemote* tmp_file_r = new TmpFileRemote(
> this, dev_id, new_file_path, new_file_path_local, false, dir.c_str());
> if (tmp_file_r == nullptr) {
> return Status("Failed to allocate temporary file object.");
> }
> if (tmp_file_r->hdfs_conn_ == nullptr) {
> return Status(Substitute("Failed to connect to FS: $0.", dir)); <===
> 'tmp_file_r' never gets deleted.
> }{noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]