mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MESOS-6038) Prevent leaking allocated memory for Promises
Date Wed, 17 Aug 2016 17:49:20 GMT

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

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

Github user haosdent commented on the issue:

    https://github.com/apache/mesos/pull/157
  
    By the way, copy a comment from @jpeach in https://mesos.slack.com/messages/cxx/
    
    ```
    Promise<int> promise = Promise<int>();
    
    why not just
    ```Promise<int> promise;```
    ``


> 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)

Mime
View raw message