Subject: | memory leak on wrong object construction |
The following script leads to memory leaks:
use strict;
use warnings;
{
package X2 {
use Class::XSAccessor {
constructor => 'new',
getters => [qw/err params/],
};
}
}
while(1) {
eval { X2->new("something"); };
}
It it expected not to leak. Yep, I know that the object is constructed wrong way and it leads to exception, anyway it should not leak.