]> granicus.if.org Git - python/commit
err_input(): Nailed a small memory leak. If the error is E_INTR, the
authorBarry Warsaw <barry@python.org>
Wed, 27 Jan 1999 16:39:40 +0000 (16:39 +0000)
committerBarry Warsaw <barry@python.org>
Wed, 27 Jan 1999 16:39:40 +0000 (16:39 +0000)
commitc80baa3365d0c87f419020e3e1f0488d8bae8eb5
tree873de298333235cd6f2b44cdd8deab4d652f227d
parent54892c4b2cac50cc698be2ebede663b781cf4a37
err_input(): Nailed a small memory leak.  If the error is E_INTR, the
v temporary variable was never decref'd.  Test this by starting up the
interpreter, hitting C-c, then immediately exiting.

Same potential leak can occur if error is E_NOMEM, since the return is
done in the case block.  Added Py_XDECREF(v); to both blocks, just
before the return.
Python/pythonrun.c