We must check if the hv is a stash, otherwise we try to delete
something that is a HvNAME of null..... tests pass better now
p4raw-id: //depot/perl@19213
SvREFCNT_dec(gp->gp_sv);
SvREFCNT_dec(gp->gp_av);
- if(gp->gp_hv && PL_stashcache)
+ if(gp->gp_hv && HvNAME(gp->gp_hv) && PL_stashcache)
hv_delete(PL_stashcache, HvNAME(gp->gp_hv), strlen(HvNAME(gp->gp_hv)), G_DISCARD);
SvREFCNT_dec(gp->gp_hv);
SvREFCNT_dec(gp->gp_io);