Re: [Boost-bugs] [Boost C++ Libraries] #10024: allocator memory leak

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10024: allocator memory leak
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-05-18 18:42:03


#10024: allocator memory leak
-------------------------------+---------------------
  Reporter: anonymous | Owner:
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: None
   Version: Boost 1.55.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+---------------------
Description changed by viboes:

Old description:

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

New description:

 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#comment:3>
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