regcomp.c: Stop regexp-to-pv assignemnt from leaking
authorFather Chrysostomos <sprout@cpan.org>
Sun, 28 Oct 2012 21:41:55 +0000 (14:41 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 28 Oct 2012 21:41:55 +0000 (14:41 -0700)
commitedd9fea2b8b49b8bfc982ef54ba4182316112678
treec40366781abd72eea1e5557925be8405be3881f4
parente20b6c3b653d16e4505d98eecb1b95736f03ca75
regcomp.c: Stop regexp-to-pv assignemnt from leaking

SvPV_set will just set SvPVX, allowing the existing value to leak.

This leak was caused by f082678508, which allowed reg_temp_copy to
be called with an existing SV, but without modifying the contents of
reg_temp_copy to account.
regcomp.c