gawk-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] gawk branch, feature/minrx, updated. gawk-4.1.0-5663-g1a5a4a99


From: Arnold Robbins
Subject: [SCM] gawk branch, feature/minrx, updated. gawk-4.1.0-5663-g1a5a4a99
Date: Thu, 25 Jul 2024 11:41:21 -0400 (EDT)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".

The branch, feature/minrx has been updated
       via  1a5a4a99f52771087f398ed01c12bb4a94a45a07 (commit)
      from  4ad121d73e862f2913fb3472f63619ff12be5fa7 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=1a5a4a99f52771087f398ed01c12bb4a94a45a07

commit 1a5a4a99f52771087f398ed01c12bb4a94a45a07
Author: Arnold D. Robbins <arnold@skeeve.com>
Date:   Thu Jul 25 18:40:52 2024 +0300

    Plug a memory leak.

diff --git a/ChangeLog b/ChangeLog
index 8c02d6f8..02c1fb0a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-07-25         Arnold D. Robbins     <arnold@skeeve.com>
+
+       * re.c (refree): Call minrx_regfree() on rp->mre_pat.
+       Thanks to valgrind and Mike Haertel.
+
 2024-07-20         Tim Rice              <trice@posteo.net>
 
        * io.c (csvscan): Set the sentinel if we found CR-LF.
diff --git a/re.c b/re.c
index 70dec00f..a841db8b 100644
--- a/re.c
+++ b/re.c
@@ -485,6 +485,7 @@ refree(Regexp *rp)
                free(rp->dfareg);
        }
        efree(rp->mre_regs);
+       minrx_regfree(& rp->mre_pat);
        efree(rp);
 }
 

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog | 5 +++++
 re.c      | 1 +
 2 files changed, 6 insertions(+)


hooks/post-receive
-- 
gawk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]