From: mlichvar Date: Tue, 30 Jan 2007 09:56:09 +0000 (+0000) Subject: - fix memory allocation in snack to be consistent (#212780) (Jeremy Katz) X-Git-Tag: r0-52-5~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd0f4c3261f98da43deeac5bb8dc22216b1b3eb4;p=thirdparty%2Fnewt.git - fix memory allocation in snack to be consistent (#212780) (Jeremy Katz) --- diff --git a/newt.spec b/newt.spec index 3e013c2..22af0c8 100644 --- a/newt.spec +++ b/newt.spec @@ -1,7 +1,7 @@ Summary: A development library for text mode user interfaces. Name: newt Version: 0.52.4 -Release: 2%{?dist} +Release: 3%{?dist} License: LGPL Group: System Environment/Libraries Source: newt-%{version}.tar.gz @@ -71,6 +71,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libnewt.so %changelog +* Sat Jan 6 2007 Jeremy Katz - 0.52.4-3 +- fix memory allocation in snack to be consistent (#212780) + * Thu Dec 7 2006 Jeremy Katz - 0.52.4-2 - rebuild for python 2.5 diff --git a/snackmodule.c b/snackmodule.c index deb3867..cc64f0f 100644 --- a/snackmodule.c +++ b/snackmodule.c @@ -924,8 +924,8 @@ static void widgetDestructor(PyObject * o) { Py_XDECREF (s->scs.cb); Py_XDECREF (s->scs.data); - - PyMem_DEL(o); + + PyObject_Free(o); } static PyObject * widgetAddCallback(snackWidget * s, PyObject * args) {