diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-06-23 14:11:20 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-06-23 14:11:20 +0000 |
commit | 94010e71b67db04027249ff69e2a2bfa9a050945 (patch) | |
tree | 3288295ac02b3ed67238e92114987299ead8ffc3 /gv.c | |
parent | 771ba71a7bf3673decf297992c8591f2ff873802 (diff) | |
download | perl-94010e71b67db04027249ff69e2a2bfa9a050945.tar.gz |
Add a define PERL_POISON which tries to trip up anything accessing
freed or uninitialised memory. Currently only Poison()s freed
pointers.
p4raw-id: //depot/perl@24959
Diffstat (limited to 'gv.c')
-rw-r--r-- | gv.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -120,7 +120,7 @@ Perl_gv_init(pTHX_ GV *gv, HV *stash, const char *name, STRLEN len, int multi) SvLEN_set(gv, 0); SvPOK_off(gv); } else - Safefree(SvPVX_const(gv)); + Safefree(SvPVX_mutable(gv)); } Newz(602, gp, 1, GP); GvGP(gv) = gp_ref(gp); |