grep-commit
[Top][All Lists]
Advanced

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

grep branch, master, updated. v2.18-104-ga0f01ed


From: Paul Eggert
Subject: grep branch, master, updated. v2.18-104-ga0f01ed
Date: Fri, 25 Apr 2014 06:29:52 +0000

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 "grep".

The branch, master has been updated
       via  a0f01ed8dc7e042232eab6bd123204196410c769 (commit)
      from  b73296ace186451b096b075461634c153d1fa525 (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.savannah.gnu.org/cgit/grep.git/commit/?id=a0f01ed8dc7e042232eab6bd123204196410c769


commit a0f01ed8dc7e042232eab6bd123204196410c769
Author: Paul Eggert <address@hidden>
Date:   Thu Apr 24 23:29:19 2014 -0700

    dfa: fix recently-introduced memory leak
    
    Problem reported by Aharon Robbins in: http://bugs.gnu.org/17341
    * src/dfa.c (dfasuperset): free after dfafree.

diff --git a/src/dfa.c b/src/dfa.c
index 50264b2..8e6c708 100644
--- a/src/dfa.c
+++ b/src/dfa.c
@@ -3547,7 +3547,10 @@ dfasuperset (struct dfa *d)
   if (have_nchar && (have_achar || d->multibyte))
     d->superset = sup;
   else
-    dfafree (sup);
+    {
+      dfafree (sup);
+      free (sup);
+    }
 }
 
 /* Parse and analyze a single string of the given length.  */

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

Summary of changes:
 src/dfa.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
grep



reply via email to

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