diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-06-02 04:50:49 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-06-02 04:50:49 (GMT) |
commit | 38d4d4a35b9f5ba10d0343d458dd97a2a2432dae (patch) | |
tree | 9855252be9c547a14da580570885eee6b0a37567 /Objects/exceptions.c | |
parent | e152aab977c8cffff8879f1ad3029792185ae884 (diff) | |
download | cpython-38d4d4a35b9f5ba10d0343d458dd97a2a2432dae.zip cpython-38d4d4a35b9f5ba10d0343d458dd97a2a2432dae.tar.gz cpython-38d4d4a35b9f5ba10d0343d458dd97a2a2432dae.tar.bz2 |
Fix memory leak found by valgrind.
Diffstat (limited to 'Objects/exceptions.c')
-rw-r--r-- | Objects/exceptions.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Objects/exceptions.c b/Objects/exceptions.c index acc7da5..3b79307 100644 --- a/Objects/exceptions.c +++ b/Objects/exceptions.c @@ -619,7 +619,6 @@ EnvironmentError_str(PyEnvironmentErrorObject *self) PyTuple_SET_ITEM(tuple, 1, Py_None); } - Py_INCREF(repr); PyTuple_SET_ITEM(tuple, 2, repr); rtnval = PyString_Format(fmt, tuple); |