From 0f3a71dab1c17c0667ddf6992c599afe1ed68223 Mon Sep 17 00:00:00 2001 From: Senthil Kumaran Date: Mon, 4 Jan 2016 22:40:39 -0800 Subject: [PATCH] Issue24733 - Remove unreachable code in traceback.c --- Python/traceback.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Python/traceback.c b/Python/traceback.c index adfd66c0de7..fd5309ae3f7 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];