From c26025c562c85cac07470b832215f5f1e474aa56 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 28 May 2006 21:42:54 +0000 Subject: [PATCH] Fix ref-antileak in _struct.c which eventually lead to deallocating None. --- Modules/_struct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_struct.c b/Modules/_struct.c index cb2e5380d59..add5e8cbb07 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 *