[pypy-svn] r74971 - pypy/trunk/pypy/module/bz2

arigo at codespeak.net arigo at codespeak.net
Mon May 31 15:49:49 CEST 2010


Author: arigo
Date: Mon May 31 15:49:47 2010
New Revision: 74971

Modified:
   pypy/trunk/pypy/module/bz2/interp_bz2.py
Log:
Mess: forgot a free().


Modified: pypy/trunk/pypy/module/bz2/interp_bz2.py
==============================================================================
--- pypy/trunk/pypy/module/bz2/interp_bz2.py	(original)
+++ pypy/trunk/pypy/module/bz2/interp_bz2.py	Mon May 31 15:49:47 2010
@@ -569,6 +569,7 @@
                     temp.append(data)
                     
                     out_bufsize = _new_buffer_size(out_bufsize)
+                    lltype.free(out_buf, flavor='raw')
                     out_buf = lltype.malloc(rffi.CCHARP.TO, out_bufsize,
                                             flavor='raw', zero=True)
                     self.bzs.c_next_out = out_buf



More information about the Pypy-commit mailing list