]> granicus.if.org Git - python/commitdiff
Fix ref-antileak in _struct.c which eventually lead to deallocating None.
authorGeorg Brandl <georg@python.org>
Sun, 28 May 2006 21:42:54 +0000 (21:42 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 28 May 2006 21:42:54 +0000 (21:42 +0000)
Modules/_struct.c

index cb2e5380d592cd77f60d361d54568ecdb7d0f566..add5e8cbb07348813aa3951bcaf93beee41d3e7e 100644 (file)
@@ -1513,7 +1513,7 @@ s_pack_to(PyObject *self, PyObject *args)
                return NULL;
        }
 
-       return Py_None;
+       Py_RETURN_NONE;
 }
 
 static PyObject *