From 3ab9fce07a94de8c8b560ee1dc0211628d2300c5 Mon Sep 17 00:00:00 2001 From: handa Date: Mon, 29 Mar 2004 03:47:45 +0000 Subject: [PATCH] (mcoding__fini): Free all malloced data. --- src/coding.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- 1.7.10.4