p4raw-id: //depot/perl@1460
U32 bytes;
#endif
-#ifdef MYMALLOC
+#if defined(MYMALLOC) && !defined(PURIFY)
newmax = malloced_size((void*)AvALLOC(av))/sizeof(SV*) - 1;
if (key <= newmax)
s = SvPVX(sv);
if (newlen > SvLEN(sv)) { /* need more room? */
if (SvLEN(sv) && s) {
-#ifdef MYMALLOC
+#if defined(MYMALLOC) && !defined(PURIFY)
STRLEN l = malloced_size((void*)SvPVX(sv));
if (newlen <= l) {
SvLEN_set(sv, l);
return s;
} else
-#endif
+#endif
Renew(s,newlen,char);
}
else