bug-gettext
[Top][All Lists]
Advanced

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

[bug-gettext] [PATCH 4/6] Fix memory leak: po_callback_comment_dispatche


From: Alexander Potashev
Subject: [bug-gettext] [PATCH 4/6] Fix memory leak: po_callback_comment_dispatcher does not take ownership of the string passed into it
Date: Sat, 24 Aug 2013 20:55:21 +0400

---
 gettext-tools/src/po-gram-gen.y | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gettext-tools/src/po-gram-gen.y b/gettext-tools/src/po-gram-gen.y
index bdc568a..aba98a7 100644
--- a/gettext-tools/src/po-gram-gen.y
+++ b/gettext-tools/src/po-gram-gen.y
@@ -178,6 +178,7 @@ comment
         : COMMENT
                 {
                   po_callback_comment_dispatcher ($1.string);
+                  free ($1.string);
                 }
         ;
 
-- 
1.8.1.5




reply via email to

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