]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
PyLong_FromString(): Nailed a small memory leak. In the str==start
authorBarry Warsaw <barry@python.org>
Wed, 27 Jan 1999 17:48:27 +0000 (17:48 +0000)
committerBarry Warsaw <barry@python.org>
Wed, 27 Jan 1999 17:48:27 +0000 (17:48 +0000)
commitb5cebfe164fbf6c862e8aa9fb91628d1b8cf76be
treea1e8031931181d6edb09750525edaa4d511d2c0a
parentaa2aea0e796d6f6b495a23c0fc4d5c66967948ba
PyLong_FromString(): Nailed a small memory leak.  In the str==start
test, we forgot that z is still pointing to a real live object.
DECREF() it before returning.
Objects/longobject.c