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