mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 09:28:58 +00: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
@@ -673,6 +673,7 @@ void Simulator::poll_for_MAVLink_messages()
|
||||
|
||||
if (bind(_fd, (struct sockaddr *)&_myaddr, sizeof(_myaddr)) < 0) {
|
||||
PX4_ERR("bind for UDP port %i failed (%i)", _port, errno);
|
||||
::close(_fd);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user