summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorAdrian M. Enache <enache@rdslink.ro>2003-12-11 23:04:03 +0000
committerEnache Adrian <enache@rdslink.ro>2003-12-11 23:04:03 +0000
commit979acdb57942c7eba962592584b8668e204b0c71 (patch)
tree99449beaf9d8e825baf38c2b22033a13af7857da /sv.c
parent8f78557a961555c7d3a0f903d990f4f78b07624a (diff)
downloadperl-979acdb57942c7eba962592584b8668e204b0c71.tar.gz
#21866 was wrong. another try to plumb that damn leak.
p4raw-id: //depot/perl@21876
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sv.c b/sv.c
index 40d99cbdbb..47616ce5f7 100644
--- a/sv.c
+++ b/sv.c
@@ -6060,8 +6060,7 @@ Perl_sv_pos_b2u(pTHX_ register SV* sv, I32* offsetp)
assert(mg);
if (!mg->mg_ptr) {
- mg->mg_len = PERL_MAGIC_UTF8_CACHESIZE * 2;
- Newz(0, cache, mg->mg_len, STRLEN);
+ Newz(0, cache, PERL_MAGIC_UTF8_CACHESIZE * 2, STRLEN);
mg->mg_ptr = (char *) cache;
}
assert(cache);