mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1172824: Close dumpFile in case of error in DumpHeap (CID 1302587); r=jonco
This commit is contained in:
parent
3c87431a7f
commit
6156ef9f94
@ -1121,6 +1121,8 @@ DumpHeap(JSContext* cx, unsigned argc, Value* vp)
|
||||
|
||||
if (i != args.length()) {
|
||||
JS_ReportError(cx, "bad arguments passed to dumpHeap");
|
||||
if (dumpFile)
|
||||
fclose(dumpFile);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user