]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix small memory leak.
authorBruno Haible <bruno@clisp.org>
Sat, 1 Sep 2007 08:48:26 +0000 (08:48 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:15:01 +0000 (12:15 +0200)
gettext-tools/src/ChangeLog
gettext-tools/src/x-c.c

index ef394fddf5d5e0147571118679667ac68ba095e0..13f0cab90b0712ea965b0129fe226a5117f2c7d5 100644 (file)
@@ -1,3 +1,8 @@
+2007-06-19  Bruno Haible  <bruno@clisp.org>
+
+       * x-c.c (phase8_get): Call free_token, so that the reference to
+       tmp.comment gets dropped.
+
 2007-08-27  Bruno Haible  <bruno@clisp.org>
 
        * x-python.c (phase7_getuc): Interpret octal and hexadecimal escapes
index dfac334763448f8d0095a98c849547022f368619..fbbfb4a9dc8e8d2e18a15ca4a6cf552c6b98566a 100644 (file)
@@ -1555,7 +1555,7 @@ phase8_get (token_ty *tp)
       len = strlen (tp->string);
       tp->string = xrealloc (tp->string, len + strlen (tmp.string) + 1);
       strcpy (tp->string + len, tmp.string);
-      free (tmp.string);
+      free_token (&tmp);
     }
 }