summaryrefslogtreecommitdiff
path: root/hv.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-12-30 00:38:32 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-12-30 00:38:32 +0000
commit9692f7e7da6d0e69b8995374e7ea7d5f6bd54236 (patch)
tree390600aa8ffa8cfd271a8e9a15882bc4631c0caa /hv.c
parentc9bc2bba40c7aed51d58b598de970d52e4fa61e1 (diff)
downloadperl-9692f7e7da6d0e69b8995374e7ea7d5f6bd54236.tar.gz
(Retracted by #8261). (Unsuccessful memory access tweaks.)
p4raw-id: //depot/perl@8261
Diffstat (limited to 'hv.c')
-rw-r--r--hv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hv.c b/hv.c
index f5aa4a8d7f..867c0b2627 100644
--- a/hv.c
+++ b/hv.c
@@ -1225,7 +1225,8 @@ Perl_hv_undef(pTHX_ HV *hv)
return;
xhv = (XPVHV*)SvANY(hv);
hfreeentries(hv);
- Safefree(xhv->xhv_array);
+ if (xhv->xhv_array)
+ Safefree(xhv->xhv_array);
if (HvNAME(hv)) {
Safefree(HvNAME(hv));
HvNAME(hv) = 0;