]> granicus.if.org Git - libnl/commitdiff
Fixed memory leak in Cache destructor
authorКоренберг Марк <mark@ideco.ru>
Fri, 8 Jun 2012 07:19:27 +0000 (13:19 +0600)
committerКоренберг Марк (ноутбук дома) <socketpair@gmail.com>
Fri, 8 Jun 2012 16:26:35 +0000 (22:26 +0600)
destructor of Cache was missing due to typo

python/netlink/core.py

index 05420ef0b35c7a439620ba43ec72d4b9be99c4f8..3298e2ceb6ef858e3c9d1a71e7b00be63e52968e 100644 (file)
@@ -441,7 +441,7 @@ class Cache(object):
         self.arg1 = None
         self.arg2 = None
 
-    def __del(self):
+    def __del__(self):
         capi.nl_cache_free(self._nl_cache)
 
     def __len__(self):