commit 9cc59c6c643744868ff01cbc47a54775281e06f1 parent 9b549615a05da521035ab9755a61fdb2ca045435 Author: Christian Grothoff <christian@grothoff.org> Date: Sun, 13 Jun 2010 14:53:41 +0000 another one Diffstat:
| M | src/common/convert.c | | | 5 | ++++- |
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git 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 if (cd == (iconv_t) - 1) return strdup (i); if (len > 1024 * 1024) - return NULL; /* too big for meta data */ + { + iconv_close (cd); + return NULL; /* too big for meta data */ + } tmpSize = 3 * len + 4; tmp = malloc (tmpSize); if (tmp == NULL)