From: Georg Brandl Date: Sun, 28 May 2006 21:42:54 +0000 (+0000) Subject: Fix ref-antileak in _struct.c which eventually lead to deallocating None. X-Git-Tag: v2.5b1~374 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c26025c562c85cac07470b832215f5f1e474aa56;p=thirdparty%2FPython%2Fcpython.git Fix ref-antileak in _struct.c which eventually lead to deallocating None. --- diff --git a/Modules/_struct.c b/Modules/_struct.c index cb2e5380d592..add5e8cbb073 100644 --- a/Modules/_struct.c +++ b/Modules/_struct.c @@ -1513,7 +1513,7 @@ s_pack_to(PyObject *self, PyObject *args) return NULL; } - return Py_None; + Py_RETURN_NONE; } static PyObject *