if (flags & G_DISCARD)
sv = Nullsv;
else {
- sv = HeVAL(entry);
+ sv = sv_2mortal(HeVAL(entry));
HeVAL(entry) = &PL_sv_undef;
}
if (entry == xhv->xhv_eiter)
if (flags & G_DISCARD)
sv = Nullsv;
else {
- sv = HeVAL(entry);
+ sv = sv_2mortal(HeVAL(entry));
HeVAL(entry) = &PL_sv_undef;
}
if (entry == xhv->xhv_eiter)