[ 
https://issues.apache.org/jira/browse/IMPALA-14443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zoltán Borók-Nagy resolved IMPALA-14443.
----------------------------------------
    Fix Version/s: Impala 5.0.0
       Resolution: Fixed

> 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
>             Fix For: Impala 5.0.0
>
>
> 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: issues-all-unsubscr...@impala.apache.org
For additional commands, e-mail: issues-all-h...@impala.apache.org

Reply via email to