In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/c4bc4aaaeaf5ebf3d6c5758fe61c1f0dd3864b9a?hp=86755f4c6f582e5c7a061c052ee0ab93941a9733>

- Log -----------------------------------------------------------------
commit c4bc4aaaeaf5ebf3d6c5758fe61c1f0dd3864b9a
Author: Tony Cook <t...@develop-help.com>
Date:   Sun Jul 11 21:23:30 2010 +1000

    RT #73520: POSIX::strftime memory leak
    
    Tested before/after with valgrind.
-----------------------------------------------------------------------

Summary of changes:
 util.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/util.c b/util.c
index 652e868..b3b385e 100644
--- a/util.c
+++ b/util.c
@@ -4234,7 +4234,7 @@ Perl_my_strftime(pTHX_ const char *fmt, int sec, int min, 
int hour, int mday, in
     const int fmtlen = strlen(fmt);
     int bufsize = fmtlen + buflen;
 
-    Newx(buf, bufsize, char);
+    Renew(buf, bufsize, char);
     while (buf) {
       buflen = strftime(buf, bufsize, fmt, &mytm);
       if (buflen > 0 && buflen < bufsize)

--
Perl5 Master Repository

Reply via email to