diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-12-23 12:31:26 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-12-23 12:31:26 +0000 |
commit | e537ac38cb8a0eeb6351f73ebefac120742db282 (patch) | |
tree | b68bce5a2c5a821d615167234503fbb7ea9677fd /sv.h | |
parent | 718140ec19bbd5ac75685b0182b0f943598db1ee (diff) | |
download | perl-e537ac38cb8a0eeb6351f73ebefac120742db282.tar.gz |
In SvPV_free(), assert() that no-one is trying to free up a reference.
p4raw-id: //depot/perl@32717
Diffstat (limited to 'sv.h')
-rw-r--r-- | sv.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1428,6 +1428,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; \ |