mirror of
https://github.com/python/cpython.git
synced 2026-05-08 05:32:01 -04:00
c80baa3365
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.