[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-gettext] [PATCH 6/6] Fix memory leak: free gram_pos.file_name in le
From: |
Alexander Potashev |
Subject: |
[bug-gettext] [PATCH 6/6] Fix memory leak: free gram_pos.file_name in lex_end() |
Date: |
Sat, 24 Aug 2013 20:55:23 +0400 |
Fix memory leak that manifests when you read more than one translation
file sequentially in one process.
---
gettext-tools/src/po-lex.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/gettext-tools/src/po-lex.c b/gettext-tools/src/po-lex.c
index 9b9704a..8da0b9a 100644
--- a/gettext-tools/src/po-lex.c
+++ b/gettext-tools/src/po-lex.c
@@ -627,6 +627,7 @@ void
lex_end ()
{
mbf->fp = NULL;
+ free (gram_pos.file_name);
gram_pos.file_name = NULL;
gram_pos.line_number = 0;
gram_pos_column = 0;
--
1.8.1.5
- [bug-gettext] [PATCH 0/6] Fix various memory leaks in libgettextpo, Alexander Potashev, 2013/08/24
- [bug-gettext] [PATCH 1/6] Copy string from shared buffer, Alexander Potashev, 2013/08/24
- [bug-gettext] [PATCH 2/6] Fix memory leak: do not duplicate msgid_plural in message_alloc, Alexander Potashev, 2013/08/24
- [bug-gettext] [PATCH 3/6] Fix memory leak: free msgctxt in message_free, Alexander Potashev, 2013/08/24
- [bug-gettext] [PATCH 4/6] Fix memory leak: po_callback_comment_dispatcher does not take ownership of the string passed into it, Alexander Potashev, 2013/08/24
- [bug-gettext] [PATCH 5/6] Fix memory leak: string_list_append duplicates the string, Alexander Potashev, 2013/08/24
- [bug-gettext] [PATCH 6/6] Fix memory leak: free gram_pos.file_name in lex_end(),
Alexander Potashev <=
- Re: [bug-gettext] [PATCH 0/6] Fix various memory leaks in libgettextpo, Daiki Ueno, 2013/08/27