rpms/py-radix/F-10 py-radix-0.5-memleak.patch, NONE, 1.1 py-radix.spec, 1.1, 1.2
Matt Domsch
mdomsch at fedoraproject.org
Fri Oct 23 14:14:40 UTC 2009
Author: mdomsch
Update of /cvs/extras/rpms/py-radix/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv25682
Modified Files:
py-radix.spec
Added Files:
py-radix-0.5-memleak.patch
Log Message:
Add patch by Alexander Sabourenkov to fix memory leak (Debian #512830)
py-radix-0.5-memleak.patch:
radix_python.c | 1 +
1 file changed, 1 insertion(+)
--- NEW FILE py-radix-0.5-memleak.patch ---
With thanks to Debian bug 512830. Add patch by Alexander Sabourenkov
to fix memory leak.
Fedora patch originally taken from
http://ftp-stud.hs-esslingen.de/debian/pool/main/p/py-radix/py-radix_0.5-2.diff.gz
diff -u py-radix-0.5.orig/radix_python.c py-radix-0.5/radix_python.c
--- py-radix-0.5.orig/radix_python.c 2007-12-17 20:49:01.000000000 -0600
+++ py-radix-0.5/radix_python.c 2009-10-23 09:03:50.000000000 -0500
@@ -95,6 +95,7 @@
Py_XDECREF(self->family);
Py_XDECREF(self->network);
Py_XDECREF(self->prefix);
+ Py_XDECREF(self->packed);
PyObject_Del(self);
}
Index: py-radix.spec
===================================================================
RCS file: /cvs/extras/rpms/py-radix/F-10/py-radix.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- py-radix.spec 13 Oct 2009 17:40:18 -0000 1.1
+++ py-radix.spec 23 Oct 2009 14:14:40 -0000 1.2
@@ -1,8 +1,9 @@
Name: py-radix
Summary: Radix tree data structure for Python
Version: 0.5
-Release: 5%{?dist}
+Release: 6%{?dist}
Source0: http://www2.mindrot.org/files/py-radix/py-radix-%{version}.tar.gz
+Patch0: py-radix-0.5-memleak.patch
License: BSD with advertising
Group: Development/Libraries
BuildRoot: %{_tmppath}/%{name}-buildroot
@@ -24,6 +25,7 @@ for networks (the data structure itself
%prep
%setup -q
+%patch0 -p1
rm -f inet_ntop.c strlcpy.c
touch inet_ntop.c strlcpy.c
@@ -43,6 +45,9 @@ rm -rf $RPM_BUILD_ROOT
%doc LICENSE README TODO ChangeLog
%changelog
+* Fri Oct 23 2009 Matt Domsch <mdomsch at fedoraproject.org> - 0.5-6
+- Add patch by Alexander Sabourenkov to fix memory leak (Debian #512830)
+
* Mon Oct 12 2009 Matt Domsch <mdomsch at fedoraproject.org> - 0.5-5
- remove inet_ntop.c and strlcpy.c for safety. They're only used on
Windows.
More information about the fedora-extras-commits
mailing list