changeset 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 9093a2e9c3fd
children d27beaf1c61c
files src/fileio.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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.  */