mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-21 21:55:34 +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()
|
||||
{
|
||||
free((char *)_port);
|
||||
|
||||
if (!(_fd < 0)) {
|
||||
close(_fd);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user