bugs.
p4raw-id: //depot/perl@27839
SvPV_free(sv);
allocate = PERL_STRLEN_ROUNDUP(len + 1);
+#ifdef DEBUGGING
+ {
+ /* Force a move to shake out bugs in callers. */
+ char *new_ptr = safemalloc(allocate);
+ Copy(ptr, new_ptr, len, char);
+ PoisonFree(ptr,len,char);
+ Safefree(ptr);
+ ptr = new_ptr;
+ }
+#else
ptr = saferealloc (ptr, allocate);
+#endif
SvPV_set(sv, ptr);
SvCUR_set(sv, len);
SvLEN_set(sv, allocate);