i18n: Always allocate from pool in recode_substring_pool().
[pspp-builds.git] / src / libpspp / i18n.c
index 5d03d19a861b1144b496e90c9c24d5a5a61de2cb..59665bee63b6a44ba6910eea288d3ca8b1ae7b12 100644 (file)
@@ -208,7 +208,7 @@ recode_substring_pool (const char *to, const char *from,
   if ( (iconv_t) -1 == conv )
     {
       struct substring out;
-      ss_alloc_substring (&out, text);
+      ss_alloc_substring_pool (&out, text, pool);
       return out;
     }