From: handa Date: Mon, 29 Mar 2004 03:47:45 +0000 (+0000) Subject: (mcoding__fini): Free all malloced data. X-Git-Tag: REL-1-0-2~17 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ab9fce07a94de8c8b560ee1dc0211628d2300c5;p=m17n%2Fm17n-lib.git (mcoding__fini): Free all malloced data. --- diff --git a/src/coding.c b/src/coding.c index c7386cc..ca6637c 100644 --- a/src/coding.c +++ b/src/coding.c @@ -2990,7 +2990,11 @@ mcoding__fini (void) if (coding->extra_info) free (coding->extra_info); if (coding->extra_spec) - free (coding->extra_spec); + { + if (coding->type == Miso_2022) + free (((struct iso_2022_spec *) coding->extra_spec)->designations); + free (coding->extra_spec); + } free (coding); } MLIST_FREE1 (&coding_list, codings);