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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c26025c562c85cac07470b832215f5f1e474aa56;p=python Fix ref-antileak in _struct.c which eventually lead to deallocating None. --- diff --git a/Modules/_struct.c b/Modules/_struct.c index cb2e5380d5..add5e8cbb0 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 *