Stop / $looks_like_block/ from leaking
authorFather Chrysostomos <sprout@cpan.org>
Tue, 30 Oct 2012 23:41:27 +0000 (16:41 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Fri, 2 Nov 2012 01:09:59 +0000 (18:09 -0700)
commitddac780e51876b4ded3e018ba6117a0f0f69dfe1
tree434629ac7a9273b1d5ffe11fd09b8552a680cfbe
parentf67abcc4495468f94ded423c7788a7356ea8584b
Stop / $looks_like_block/ from leaking

If an interpolated string looks as though it contains a regexp code
block, the regexp compiler will evaluate it inside qr'...' and then
extract the code blocks from the resulting regexp object.

If it turned out to be a false positive (e.g., "[(?{})]"), then
the code to handle this returned without freeing the temporary reg-
exp object.
regcomp.c
t/op/svleak.t