summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--charset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/charset.c b/charset.c
index 8b72225..c9f43e6 100644
--- a/charset.c
+++ b/charset.c
@@ -356,7 +356,7 @@ getOtherCharset(const char *name)
c->other_aux = s;
if (!fc->init(s)) {
- c->type = T_FAILED;
+ free(c);
return NULL;
}