Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8322: memory leak if load_construct_data throws
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-03-21 18:51:11
#8322: memory leak if load_construct_data throws
-------------------------------+--------------------------------------------
Reporter: anonymous | Owner: ramey
Type: Bugs | Status: new
Milestone: To Be Determined | Component: serialization
Version: Boost 1.46.1 | Severity: Problem
Resolution: | Keywords: leak
-------------------------------+--------------------------------------------
Comment (by anonymous):
it's actually correct that the auto_ptr-like object is release()d, because
it doesn't only free the memory but also calls the destructor of "type",
which would be invalid if load_construct_data throws, indicating it failed
to construct.
but there is still memory allocated that needs to be freed.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/8322#comment:1> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:12 UTC