aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-iconv.c
diff options
context:
space:
mode:
Diffstat (limited to 'e-util/e-iconv.c')
-rw-r--r--e-util/e-iconv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/e-util/e-iconv.c b/e-util/e-iconv.c
index c4f21960e1..a90b80b9f1 100644
--- a/e-util/e-iconv.c
+++ b/e-util/e-iconv.c
@@ -307,7 +307,7 @@ flush_entry(struct _iconv_cache *ic)
in = (struct _iconv_cache_node *)ic->open.head;
nn = in->next;
- while (nn) {
+ while (in) {
if (in->ip != (iconv_t)-1) {
g_hash_table_remove(iconv_cache_open, in->ip);
iconv_close(in->ip);
@@ -316,6 +316,7 @@ flush_entry(struct _iconv_cache *ic)
in = nn;
nn = in->next;
}
+ g_free(ic->conv);
g_free(ic);
}