summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-12-31 11:04:54 +0000
committerNicholas Clark <nick@ccl4.org>2007-12-31 11:04:54 +0000
commitceb531cd9f4a607a106933280c868d236b5c51fa (patch)
tree5d72327a263f75001453050f8b601779f22544ed /sv.c
parent7a7524138a5c397ce82248e4a513d11be63af864 (diff)
downloadperl-ceb531cd9f4a607a106933280c868d236b5c51fa.tar.gz
assert() that we're not trying to free scalars a second time.
p4raw-id: //depot/perl@32788
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sv.c b/sv.c
index bf8d503c42..7844c498c5 100644
--- a/sv.c
+++ b/sv.c
@@ -5136,6 +5136,7 @@ Perl_sv_clear(pTHX_ register SV *sv)
assert(sv);
assert(SvREFCNT(sv) == 0);
+ assert(SvTYPE(sv) != SVTYPEMASK);
if (type <= SVt_IV) {
/* See the comment in sv.h about the collusion between this early