[Container] Memory leak from allocation of 0 sized memory
I recently tracked down a major memory leak in a system that I am working
on to a bug in Boost.Container.
The bug is that the following code leaks memory:
#include
El 26/09/2013 17:21, Evan Wallace escribió:
I recently tracked down a major memory leak in a system that I am working on to a bug in Boost.Container.
The bug is that the following code leaks memory:
#include
int main() { while (true) { boost::container::vector<int> vec; boost::container::vector<int> vec2(vec); } }
I have submitted a ticket to trac, but since this is a major issue and the release date for 1.55.0 is very soon, I am also posting to the mailing list.
https://svn.boost.org/trac/boost/ticket/9166
For reference: the leaked memory is allocated in allocator_version_traits::allocation_command
Thanks for the report I'll fix it ASAP. Best, Ion
participants (2)
-
Evan Wallace
-
Ion Gaztañaga