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 1a75237..08b78b5 100644
--- a/src/common/convert.c
+++ b/src/common/convert.c
@@ -50,7 +50,10 @@ EXTRACTOR_common_convert_to_utf8 (const char *input, size_t len, const char *cha
50 tmpSize = 3 * len + 4; 50 tmpSize = 3 * len + 4;
51 tmp = malloc (tmpSize); 51 tmp = malloc (tmpSize);
52 if (tmp == NULL) 52 if (tmp == NULL)
53 return NULL; 53 {
54 iconv_close (cd);
55 return NULL;
56 }
54 itmp = tmp; 57 itmp = tmp;
55 finSize = tmpSize; 58 finSize = tmpSize;
56 if (iconv (cd, (char **) &input, &len, &itmp, &finSize) == SIZE_MAX) 59 if (iconv (cd, (char **) &input, &len, &itmp, &finSize) == SIZE_MAX)