test memory leaks around magic get dieing
authorRuslan Zakirov <ruz@bestpractical.com>
Tue, 23 Oct 2012 16:04:37 +0000 (20:04 +0400)
committerFather Chrysostomos <sprout@cpan.org>
Fri, 26 Oct 2012 03:02:55 +0000 (20:02 -0700)
commit33b889b0162a4f12e7c2a8d184afb63213130f07
treec9be6100eb767fa7fc0139b86ebe421346e5c056
parent1104029a0824d177415806f3d30cecd2c5c399a1
test memory leaks around magic get dieing

Leaks happen when newSV is allocated, but then
copy operaton dies in get magic leaving not freed
scalar around.

Most of new tests check leaks in code path executing
sv_mortalcopy which has such problem. Two cases has
the same pattern, but don't use sv_mortalcopy. Can be
found with the following command:

grep -n -A3 'newSV\>' *.c | grep -B3 sv_set
t/op/svleak.t