Author: allison
Date: Tue Nov 11 13:50:12 2008
New Revision: 32560

Modified:
   branches/pdd22io/src/pmc/filehandle.pmc

Log:
[pdd22io] Fix double free error, 'buffer_start', 'buffer_next', and
'buffer_end' are all pointers to the same chunk of allocated memory. (Note, the
buffer will probably have to change to an actual STRING to support the Strings
PDD. But, for now, we just want a smooth transition from the old I/O
architecture to the new I/O architecture.)


Modified: branches/pdd22io/src/pmc/filehandle.pmc
==============================================================================
--- branches/pdd22io/src/pmc/filehandle.pmc     (original)
+++ branches/pdd22io/src/pmc/filehandle.pmc     Tue Nov 11 13:50:12 2008
@@ -133,10 +133,6 @@
 
             if (data_struct->buffer_start)
                 mem_sys_free(data_struct->buffer_start);
-            if (data_struct->buffer_end)
-                mem_sys_free(data_struct->buffer_end);
-            if (data_struct->buffer_next)
-                mem_sys_free(data_struct->buffer_next);
 
             mem_sys_free(PARROT_FILEHANDLE(SELF));
             PMC_data(SELF) = NULL;

Reply via email to