commit | c80baa3365d0c87f419020e3e1f0488d8bae8eb5 | [log] [tgz] |
---|---|---|
author | Barry Warsaw <barry@python.org> | Wed Jan 27 16:39:40 1999 +0000 |
committer | Barry Warsaw <barry@python.org> | Wed Jan 27 16:39:40 1999 +0000 |
tree | 873de298333235cd6f2b44cdd8deab4d652f227d | |
parent | 54892c4b2cac50cc698be2ebede663b781cf4a37 [diff] |
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.