summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2015-11-17 16:23:07 +0900
committerDaiki Ueno <ueno@gnu.org>2015-11-17 16:23:07 +0900
commit26200674f0a9769db79d073fa9b692666e926c59 (patch)
tree9d1752d12eff7392adb80226fd578867db7fdaa4
parent8764218362bb1e843bb6bf4da46649789ada89b0 (diff)
downloadexternal_gettext-26200674f0a9769db79d073fa9b692666e926c59.zip
external_gettext-26200674f0a9769db79d073fa9b692666e926c59.tar.gz
external_gettext-26200674f0a9769db79d073fa9b692666e926c59.tar.bz2
cldr-plurals: Fix a trivial leak
* src/cldr-plural.y (sample_range): Free unused operand value.
-rw-r--r--gettext-tools/src/cldr-plural.y4
1 files changed, 4 insertions, 0 deletions
diff --git a/gettext-tools/src/cldr-plural.y b/gettext-tools/src/cldr-plural.y
index 9db4a67..d3128cd 100644
--- a/gettext-tools/src/cldr-plural.y
+++ b/gettext-tools/src/cldr-plural.y
@@ -269,9 +269,13 @@ sample_ellipsis: %empty
;
sample_range: DECIMAL
+ { free ($1); }
| DECIMAL '~' DECIMAL
+ { free ($1); free ($3); }
| INTEGER
+ { free ($1); }
| INTEGER '~' INTEGER
+ { free ($1); free ($3); }
;
%%