diff options
author | Ilya Zakharevich <ilya@math.berkeley.edu> | 1998-07-20 17:20:21 -0400 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-07-21 04:59:19 +0000 |
commit | 1fe09876906e5c02d44f66bddcb676b572676eef (patch) | |
tree | 985f9fb435b3db69a71040a830bfabc83f7d2da1 | |
parent | f1c73faff486d8cc820539ef43970bf49c246509 (diff) | |
download | perl-1fe09876906e5c02d44f66bddcb676b572676eef.tar.gz |
disable malloced_size() feedback with -DLEAKTEST
Message-Id: <199807210120.VAA15031@monk.mps.ohio-state.edu>
Subject: [PATCH 5.004_75] -DLEAKTEST broken
p4raw-id: //depot/perl@1603
-rw-r--r-- | av.c | 2 | ||||
-rw-r--r-- | sv.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -92,7 +92,7 @@ av_extend(AV *av, I32 key) U32 bytes; #endif -#if defined(MYMALLOC) && !defined(PURIFY) +#if defined(MYMALLOC) && !defined(PURIFY) && !defined(LEAKTEST) newmax = malloced_size((void*)AvALLOC(av))/sizeof(SV*) - 1; if (key <= newmax) @@ -1118,7 +1118,7 @@ sv_grow(SV* sv, unsigned long newlen) s = SvPVX(sv); if (newlen > SvLEN(sv)) { /* need more room? */ if (SvLEN(sv) && s) { -#if defined(MYMALLOC) && !defined(PURIFY) +#if defined(MYMALLOC) && !defined(PURIFY) && !defined(LEAKTEST) STRLEN l = malloced_size((void*)SvPVX(sv)); if (newlen <= l) { SvLEN_set(sv, l); |