From: Senthil Kumaran Date: Tue, 5 Jan 2016 06:40:39 +0000 (-0800) Subject: Issue24733 - Remove unreachable code in traceback.c X-Git-Tag: v2.7.12rc1~310 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0f3a71dab1c17c0667ddf6992c599afe1ed68223;p=thirdparty%2FPython%2Fcpython.git Issue24733 - Remove unreachable code in traceback.c --- diff --git a/Python/traceback.c b/Python/traceback.c index adfd66c0de7a..fd5309ae3f7e 100644 --- a/Python/traceback.c +++ b/Python/traceback.c @@ -170,10 +170,6 @@ _Py_DisplaySourceLine(PyObject *f, const char *filename, int lineno, int indent) if (xfp == NULL) return err; - if (err != 0) { - fclose(xfp); - return err; - } for (i = 0; i < lineno; i++) { char* pLastChar = &linebuf[sizeof(linebuf)-2];