From fd947483fa04071dd6de888cbda507d8c75283e6 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Fri, 11 Mar 2005 08:42:16 +0000 Subject: [PATCH] fix seg fault when using bad runtime file, such as a dir git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7058 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Source/Modules/main.cxx | 1 - 1 file changed, 1 deletion(-) diff --git a/SWIG/Source/Modules/main.cxx b/SWIG/Source/Modules/main.cxx index 6e47add28..1551b6d08 100644 --- a/SWIG/Source/Modules/main.cxx +++ b/SWIG/Source/Modules/main.cxx @@ -289,7 +289,6 @@ static void SWIG_dump_runtime() { runtime = NewFile(outfile, "w"); if (!runtime) { Printf(stderr, "*** Unable to open '%s'\n", outfile); - Close(runtime); SWIG_exit(EXIT_FAILURE); }