mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 12:50:09 +00:00
Bug 405882 - js.c has an unmatched fopen() resource leak, r=igor (not part of the build)
This commit is contained in:
parent
88bb9dd768
commit
28d6419c1d
@ -269,6 +269,8 @@ Process(JSContext *cx, JSObject *obj, char *filename, JSBool forceTTY)
|
||||
JS_DestroyScript(cx, script);
|
||||
}
|
||||
|
||||
if (file != stdin)
|
||||
fclose(file);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -314,6 +316,8 @@ Process(JSContext *cx, JSObject *obj, char *filename, JSBool forceTTY)
|
||||
}
|
||||
} while (!hitEOF && !gQuitting);
|
||||
fprintf(gOutFile, "\n");
|
||||
if (file != stdin)
|
||||
fclose(file);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user