]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue24733 - Remove unreachable code in traceback.c
authorSenthil Kumaran <senthil@uthcode.com>
Tue, 5 Jan 2016 06:40:39 +0000 (22:40 -0800)
committerSenthil Kumaran <senthil@uthcode.com>
Tue, 5 Jan 2016 06:40:39 +0000 (22:40 -0800)
Python/traceback.c

index adfd66c0de7a738d8dcd199308e9bab16769806d..fd5309ae3f7ebf722ff625258d8c42cff561819e 100644 (file)
@@ -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];