Subject: [Boost-bugs] [Boost C++ Libraries] #10024: allocator memory leak
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-05-08 16:26:18
#10024: allocator memory leak
-----------------------+------------------------------
Reporter: anonymous | Type: Bugs
Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.54.0
Severity: Problem | Keywords:
-----------------------+------------------------------
hi~
boost allocaltor memory leak bug.
stl + boost allocator
check crtdbg.h
sample code.
#include "stdafx.h"
#include <string>
#include <vector>
#include <boost/pool/pool_alloc.hpp>
#include <crtdbg.h>
int main()
{
_CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
typedef std::vector<int, boost::pool_allocator<int>> Ints;
Ints i;
i.push_back(10);
return 0;
}
that code memory leak. not call free.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10024> 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:16 UTC