diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-12-23 12:31:26 +0000 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2009-03-05 22:47:53 +0000 |
commit | 4f9f927fccd6980d74e6fb0f0c22a853bb80fa0e (patch) | |
tree | c88bea21d8c2011b48627fe0636b9fbc052972c5 /sv.h | |
parent | f4c7c2d855bbb427e4ca7394626a33902d7e88d6 (diff) | |
download | perl-4f9f927fccd6980d74e6fb0f0c22a853bb80fa0e.tar.gz |
In SvPV_free(), assert() that no-one is trying to free up a reference.
p4raw-id: //depot/perl@32717
(cherry picked from commit e537ac38cb8a0eeb6351f73ebefac120742db282)
Diffstat (limited to 'sv.h')
-rw-r--r-- | sv.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1431,6 +1431,7 @@ the scalar's value cannot change unless written to. STMT_START { \ assert(SvTYPE(sv) >= SVt_PV); \ if (SvLEN(sv)) { \ + assert(!SvROK(sv)); \ if(SvOOK(sv)) { \ SvPV_set(sv, SvPVX_mutable(sv) - SvIVX(sv)); \ SvFLAGS(sv) &= ~SVf_OOK; \ |