diff options
author | Georg Brandl <georg@python.org> | 2006-05-28 21:42:54 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-05-28 21:42:54 (GMT) |
commit | c26025c562c85cac07470b832215f5f1e474aa56 (patch) | |
tree | e8ec24c237cafe3efad318940d16d3efec32634f | |
parent | c1282eef0c683e69950ccc9bc988f12437de22cb (diff) | |
download | cpython-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.c | 2 |
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 * |