Mercurial > emacs
diff src/fileio.c @ 57286:32c7a00069f2
(Finsert_file_contents): Be sure to free composition data.
| author | Kenichi Handa <handa@m17n.org> |
|---|---|
| date | Wed, 29 Sep 2004 23:41:54 +0000 |
| parents | 4c14357ffc27 |
| children | b2a68db48f92 f70dc61a797f |
line wrap: on
line diff
--- a/src/fileio.c Wed Sep 29 23:40:30 2004 +0000 +++ b/src/fileio.c Wed Sep 29 23:41:54 2004 +0000 @@ -4260,7 +4260,7 @@ if (how_much < 0) { xfree (conversion_buffer); - + coding_free_composition_data (&coding); if (how_much == -1) error ("IO error reading %s: %s", SDATA (orig_filename), emacs_strerror (errno)); @@ -4282,6 +4282,7 @@ if (bufpos == inserted) { xfree (conversion_buffer); + coding_free_composition_data (&coding); emacs_close (fd); specpdl_ptr--; /* Truncate the buffer to the size of the file. */
