Boost logo

Boost :

Subject: Re: [boost] regex iterator memory leak
From: John Maddock (boost.regex_at_[hidden])
Date: 2014-07-18 03:25:13


> I am using the example code of regex iterator in
> http://www.boost.org/doc/libs/1_55_0/libs/regex/doc/html/boost_regex/ref/regex_iterator.html
> , in a linux machine with default boost config which means NON RECURSIVE,
> and 4096 block size , I run the example with mtrace , setting it at
> first line of main method and doing muntrace right before return 0, I see
> that 4096 bytes get lost based on mtrace logs.

The memory is cached and freed at program exit - your check for leaks is
too soon.

John.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk