Hi Nenad,

On Fri, Apr 12, 2019 at 10:54:28PM +0200, Nenad Merdanovic wrote:
> The allocated trash chunk is not freed properly and causes a memory leak
> exhibited as the growth in the trash pool allocations. Bug was introduced
> in commit 271022 (BUG/MINOR: map: fix map_regm with backref).

Good catch! Now merged. However be extremely careful with map_regm().
As the age of this bug indicates it, almost nobody's using it, and for a
reason which is that just like map_reg() it can be extremely expensive
if users start to update the map with lots of entries without understanding
the impacts of iterating over hundreds of regex. However it's true that it
can be extremely convenient to perform some small transformations a-la sed.

Cheers,
Willy

Reply via email to