mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
drivers: transponder: don't free pre-allocated memory
This commit is contained in:
parent
0c5b25efc5
commit
650ea6ef4a
@ -52,8 +52,6 @@ SagetechMXS::SagetechMXS(const char *port) :
|
||||
|
||||
SagetechMXS::~SagetechMXS()
|
||||
{
|
||||
free((char *)_port);
|
||||
|
||||
if (!(_fd < 0)) {
|
||||
close(_fd);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user