mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-09 01:01:36 +08:00
UAVCAN was closding directory using the wrong pointer
This commit is contained in:
@@ -214,8 +214,8 @@ void UavcanServers::migrateFWFromRoot(const char *sd_path, const char *sd_root_p
|
||||
}
|
||||
}
|
||||
|
||||
if (dev_dirent != nullptr) {
|
||||
(void)closedir(dev_dirent);
|
||||
if (sd_root_dir != nullptr) {
|
||||
(void)closedir(sd_root_dir);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user