Bug 1172824: Close dumpFile in case of error in DumpHeap (CID 1302587); r=jonco

This commit is contained in:
Benjamin Bouvier 2015-06-09 10:15:52 +02:00
parent 3c87431a7f
commit 6156ef9f94

View File

@ -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;
}