aboutsummaryrefslogtreecommitdiff
path: root/src/common/convert.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/convert.c')
-rw-r--r--src/common/convert.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/convert.c b/src/common/convert.c
index bf62a1b..dd8f489 100644
--- a/src/common/convert.c
+++ b/src/common/convert.c
@@ -46,7 +46,10 @@ EXTRACTOR_common_convert_to_utf8 (const char *input, size_t len, const char *cha
46 if (cd == (iconv_t) - 1) 46 if (cd == (iconv_t) - 1)
47 return strdup (i); 47 return strdup (i);
48 if (len > 1024 * 1024) 48 if (len > 1024 * 1024)
49 return NULL; /* too big for meta data */ 49 {
50 iconv_close (cd);
51 return NULL; /* too big for meta data */
52 }
50 tmpSize = 3 * len + 4; 53 tmpSize = 3 * len + 4;
51 tmp = malloc (tmpSize); 54 tmp = malloc (tmpSize);
52 if (tmp == NULL) 55 if (tmp == NULL)