[ 
https://issues.apache.org/jira/browse/IMPALA-14611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18051884#comment-18051884
 ] 

ASF subversion and git services commented on IMPALA-14611:
----------------------------------------------------------

Commit beafef5d3411646f2ec8474c5bc046bc612722b0 in impala's branch 
refs/heads/master from Nandor Kollar
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=beafef5d3 ]

IMPALA-14611: Fix memory leak in ExecLoadIcebergDataRequestImpl

A vector tracking completed queries is allocated on the heap,
and never freed, leading to memory leak. As this vector is
used only within the functions, we can allocate it on the stack instead.

Change-Id: I058da5f9ddc1b36ff4e5392ecbdd6699e9789a58
Reviewed-on: http://gerrit.cloudera.org:8080/23775
Reviewed-by: Impala Public Jenkins <[email protected]>
Tested-by: Michael Smith <[email protected]>


> completed_queries in ExecLoadIcebergDataRequestImpl is never freed
> ------------------------------------------------------------------
>
>                 Key: IMPALA-14611
>                 URL: https://issues.apache.org/jira/browse/IMPALA-14611
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Backend
>            Reporter: Peter Rozsa
>            Assignee: Nándor Kollár
>            Priority: Major
>
> On 
> [client-request-state.cc:1018|https://github.com/apache/impala/blob/780e6683a21dae3622744a82f92e155ae06e13f2/be/src/service/client-request-state.cc#L1018]
>  completed_queries is allocated on the heap, but it's never freed and goes 
> out of the scope later on. Also, on L2552a and L2610, we have the same 
> behaviour.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to