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

ASF GitHub Bot commented on MESOS-6038:
---------------------------------------

Github user Vish0007 commented on the issue:

    https://github.com/apache/mesos/pull/157
  
    @aaronjwood  the "promise" object you have has local scope (and lifetime) 
and its not valid outside the method; I am sure valgrind wold report this as 
error;


> Prevent leaking allocated memory for Promises
> ---------------------------------------------
>
>                 Key: MESOS-6038
>                 URL: https://issues.apache.org/jira/browse/MESOS-6038
>             Project: Mesos
>          Issue Type: Bug
>          Components: c++ api, libprocess
>            Reporter: Aaron Wood
>            Priority: Minor
>              Labels: github-import, patch
>
> I had found a few places where these Promise objects were leaking. Once the 
> Future was returned there was no way to free the memory for the Promise 
> object that had been allocated thus causing the leak.
> https://reviews.apache.org/r/51068/
> https://github.com/apache/mesos/pull/157



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to