mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 08:13:33 +08:00
simulator and dumpfile fix minor resource leaks
* Certain conditional branches returned before closing the file handler.
This commit is contained in:
committed by
Daniel Agar
parent
a5e6c880fe
commit
47e668eb86
@@ -99,6 +99,7 @@ dumpfile_main(int argc, char *argv[])
|
||||
|
||||
if (tcsetattr(out, TCSANOW, &tc) < 0) {
|
||||
PX4_ERR("failed setting stdout attributes");
|
||||
fclose(f);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user