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

----- Forwarded message from Alexander Sabourenkov <screwdri...@lxnt.info> -----

Date: Fri, 23 Jan 2009 16:56:37 +0300
From: Alexander Sabourenkov <screwdri...@lxnt.info>
To: d...@mindrot.org
CC: m...@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

Attachment: signature.asc
Description: Digital signature

Reply via email to