[Python-modules-team] Bug#512830: Memory leak in py-radix 0.5

Christoph Berg myon at debian.org
Sat Jan 24 10:08:49 UTC 2009


Package: python-radix
Version: 0.5-1
Severity: normal

----- Forwarded message from Alexander Sabourenkov <screwdriver at lxnt.info> -----

Date: Fri, 23 Jan 2009 16:56:37 +0300
From: Alexander Sabourenkov <screwdriver at lxnt.info>
To: djm at mindrot.org
CC: myon at debian.org
Subject: Memory leak in py-radix 0.5

Hello.

Please be so kind as to accept this patch that prevents a leak of PyString 
reference and of memory as a result.

--- py-radix-0.5/radix_python.c 2007-12-18 05:49:01.000000000 +0300
+++ py-radix-0.6/radix_python.c 2009-01-23 16:44:04.000000000 +0300
@@ -95,6 +95,7 @@
        Py_XDECREF(self->family);
        Py_XDECREF(self->network);
        Py_XDECREF(self->prefix);
+       Py_XDECREF(self->packed);
        PyObject_Del(self);
 }


Thank you.

-- 

./lxnt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20090124/afcb484e/attachment.pgp 


More information about the Python-modules-team mailing list