From: Kenichi Handa Date: Wed, 29 Sep 2004 23:41:54 +0000 (+0000) Subject: (Finsert_file_contents): Be sure to free composition data. X-Git-Tag: ttn-vms-21-2-B4~4755 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e254e5e586086511c00c729dec1cdea029572aec;p=emacs.git (Finsert_file_contents): Be sure to free composition data. --- diff --git a/src/fileio.c b/src/fileio.c index 56dbae6f877..a346b4df260 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -4260,7 +4260,7 @@ actually used. */) 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 @@ actually used. */) 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. */