summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-08-07 14:45:14 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-08-07 14:45:14 +0000
commitfdbb8cbde311423021cac075eca818cc6b8ae2e4 (patch)
tree650baa6e2cfc8d03703074d322dc6bd04da47843
parent90034919d1dc964874dc273f4a7932d9c2d84416 (diff)
downloadperl-fdbb8cbde311423021cac075eca818cc6b8ae2e4.tar.gz
tr memory corruption fix from Simon Cozens.
p4raw-id: //depot/perl@6535
-rw-r--r--doop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/doop.c b/doop.c
index ba8a7e5ceb..39d050beda 100644
--- a/doop.c
+++ b/doop.c
@@ -93,8 +93,8 @@ S_do_trans_simple(pTHX_ SV *sv)
}
*d = '\0';
sv_setpvn(sv, (const char*)dstart, d - dstart);
+ Safefree(dstart);
SvUTF8_on(sv);
- SvLEN_set(sv, 2*len+1);
SvSETMAGIC(sv);
return matches;
}