diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-12-31 11:04:54 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-12-31 11:04:54 +0000 |
commit | ceb531cd9f4a607a106933280c868d236b5c51fa (patch) | |
tree | 5d72327a263f75001453050f8b601779f22544ed /sv.c | |
parent | 7a7524138a5c397ce82248e4a513d11be63af864 (diff) | |
download | perl-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |