develooper Front page | perl.cvs.parrot | Postings from November 2008

[svn:parrot] r32560 - branches/pdd22io/src/pmc

From:
allison
Date:
November 11, 2008 13:50
Subject:
[svn:parrot] r32560 - branches/pdd22io/src/pmc
Message ID:
20081111215013.BABA2CB9AF@x12.develooper.com
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;



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About