/* can't use gv_init here, because it screws up @ISA in a way that I
* can't reproduce, but that CMOP triggers */
gv_fetchsv(namesv, GV_ADD, vartype_to_svtype(variable->type));
+ SvREFCNT_dec(namesv);
}
if (vivify) {
} "list_all_package_symbols doesn't leak";
}
+# mimic CMOP::create_anon_class
+{
+ my $i = 0;
+ no_leaks_ok {
+ $i++;
+ eval "package Quux$i; 1;";
+ my $quux = Package::Stash->new("Quux$i");
+ $quux->get_or_add_package_symbol('@ISA');
+ delete $::{'Quux' . $i . '::'};
+ } "get_package_symbol doesn't leak during glob expansion";
+}
+
done_testing;