diff options
author | Bruno Haible <bruno@clisp.org> | 2007-09-01 08:48:26 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:15:01 +0200 |
commit | 4080b7f209ec70019581bd1f709e51d90b7bd61d (patch) | |
tree | 79e2845baf3d970dbaf388a4f1eb215181af3f8c | |
parent | 7a0f35c3d32a7625e96b659a60f88ec72a21d4c8 (diff) | |
download | external_gettext-4080b7f209ec70019581bd1f709e51d90b7bd61d.zip external_gettext-4080b7f209ec70019581bd1f709e51d90b7bd61d.tar.gz external_gettext-4080b7f209ec70019581bd1f709e51d90b7bd61d.tar.bz2 |
Fix small memory leak.
-rw-r--r-- | gettext-tools/src/ChangeLog | 5 | ||||
-rw-r--r-- | gettext-tools/src/x-c.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gettext-tools/src/ChangeLog b/gettext-tools/src/ChangeLog index ef394fd..13f0cab 100644 --- a/gettext-tools/src/ChangeLog +++ b/gettext-tools/src/ChangeLog @@ -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 diff --git a/gettext-tools/src/x-c.c b/gettext-tools/src/x-c.c index dfac334..fbbfb4a 100644 --- a/gettext-tools/src/x-c.c +++ b/gettext-tools/src/x-c.c @@ -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); } } |