projects
/
m17n
/
m17n-lib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93c31b1
)
(mcoding__fini): Free all malloced data.
author
handa
<handa>
Mon, 29 Mar 2004 03:47:45 +0000
(
03:47
+0000)
committer
handa
<handa>
Mon, 29 Mar 2004 03:47:45 +0000
(
03:47
+0000)
src/coding.c
patch
|
blob
|
history
diff --git
a/src/coding.c
b/src/coding.c
index
c7386cc
..
ca6637c
100644
(file)
--- 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);