[pypy-svn] r78126 - pypy/trunk/pypy/rlib

arigo at codespeak.net arigo at codespeak.net
Wed Oct 20 13:43:06 CEST 2010


Author: arigo
Date: Wed Oct 20 13:43:05 2010
New Revision: 78126

Modified:
   pypy/trunk/pypy/rlib/clibffi.py
Log:
'track_allocation=False' must also be given on lltype.free().


Modified: pypy/trunk/pypy/rlib/clibffi.py
==============================================================================
--- pypy/trunk/pypy/rlib/clibffi.py	(original)
+++ pypy/trunk/pypy/rlib/clibffi.py	Wed Oct 20 13:43:05 2010
@@ -414,10 +414,10 @@
 
     def __del__(self):
         if self.ll_cif:
-            lltype.free(self.ll_cif, flavor='raw')
+            lltype.free(self.ll_cif, flavor='raw', track_allocation=False)
             self.ll_cif = lltype.nullptr(FFI_CIFP.TO)
         if self.ll_argtypes:
-            lltype.free(self.ll_argtypes, flavor='raw')
+            lltype.free(self.ll_argtypes, flavor='raw', track_allocation=False)
             self.ll_argtypes = lltype.nullptr(FFI_TYPE_PP.TO)
 
 # as long as CallbackFuncPtr is kept alive, the underlaying userdata



More information about the Pypy-commit mailing list