summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-05-28 21:42:54 (GMT)
committerGeorg Brandl <georg@python.org>2006-05-28 21:42:54 (GMT)
commitc26025c562c85cac07470b832215f5f1e474aa56 (patch)
treee8ec24c237cafe3efad318940d16d3efec32634f
parentc1282eef0c683e69950ccc9bc988f12437de22cb (diff)
downloadcpython-c26025c562c85cac07470b832215f5f1e474aa56.zip
cpython-c26025c562c85cac07470b832215f5f1e474aa56.tar.gz
cpython-c26025c562c85cac07470b832215f5f1e474aa56.tar.bz2
Fix ref-antileak in _struct.c which eventually lead to deallocating None.
-rw-r--r--Modules/_struct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_struct.c b/Modules/_struct.c
index cb2e538..add5e8c 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 *