[
https://issues.apache.org/jira/browse/MESOS-2418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alexander Rojas updated MESOS-2418:
-----------------------------------
Description:
In MESOS-2412 a memory leak was found because of a missing {{delete}}.
Forgetting to free memory is a common error while manually managing memory. In
order to prevent this issue from happening again, another strategy should be
used to handle buffers.
Among the options there are {{std::vector<char>}},
{{std::unique_ptr<char\[\]>}}, or {{boost::scoped_array<char>}}.
was:
As a follow up to MESOS-2412 where we a discussed to introduce another
datastructure for buffer mangement instead of using raw pointers.
This would make memory management more robust and reduce the potential for
future memleaks (as in MESOS-2412).
> Remove raw pointers from stout/os.hpp
> -------------------------------------
>
> Key: MESOS-2418
> URL: https://issues.apache.org/jira/browse/MESOS-2418
> Project: Mesos
> Issue Type: Improvement
> Components: stout
> Reporter: Joerg Schad
> Priority: Minor
>
> In MESOS-2412 a memory leak was found because of a missing {{delete}}.
> Forgetting to free memory is a common error while manually managing memory.
> In order to prevent this issue from happening again, another strategy should
> be used to handle buffers.
> Among the options there are {{std::vector<char>}},
> {{std::unique_ptr<char\[\]>}}, or {{boost::scoped_array<char>}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)