Rev 4713: bencode.Encoder should use __dealloc__ to free C level resources. in http://bazaar.launchpad.net/~jameinel/bzr/2.0.4-494406-serve-memory-leak

John Arbash Meinel john at arbash-meinel.com
Fri Dec 18 21:58:36 GMT 2009


At http://bazaar.launchpad.net/~jameinel/bzr/2.0.4-494406-serve-memory-leak

------------------------------------------------------------
revno: 4713
revision-id: john at arbash-meinel.com-20091218215832-ou5naixonrr1gnbg
parent: pqm at pqm.ubuntu.com-20091218170035-kas8ryyoom4x2uti
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 2.0.4-494406-serve-memory-leak
timestamp: Fri 2009-12-18 15:58:32 -0600
message:
  bencode.Encoder should use __dealloc__ to free C level resources.
-------------- next part --------------
=== modified file 'bzrlib/_bencode_pyx.pyx'
--- a/bzrlib/_bencode_pyx.pyx	2009-06-05 01:48:32 +0000
+++ b/bzrlib/_bencode_pyx.pyx	2009-12-18 21:58:32 +0000
@@ -261,7 +261,7 @@
         self.maxsize = maxsize
         self.tail = p
 
-    def __del__(self):
+    def __dealloc__(self):
         free(self.buffer)
         self.buffer = NULL
         self.maxsize = 0



More information about the bazaar-commits mailing list