Opened 8 years ago
Last modified 8 years ago
#10024 new Bugs
allocator memory leak — at Initial Version
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Milestone: | To Be Determined | Component: | pool |
Version: | Boost 1.55.0 | Severity: | Problem |
Keywords: | Cc: |
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.
Note:
See TracTickets
for help on using tickets.