fix seg fault when using bad runtime file, such as a dir
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7058 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e288b128da
commit
1d566d2cbd
1 changed files with 0 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue