diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-05-14 14:00:31 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-05-14 14:00:31 +0200 |
commit | 332e08b44a1081bf4e6fa969fa6c90c83e3e75bc (patch) | |
tree | 05a8c4cd5af970abe2221bc99b45228afd5a89c4 | |
parent | c2f825647e8fd2aa4bf7a37399203c6071239765 (diff) | |
download | px4-firmware-332e08b44a1081bf4e6fa969fa6c90c83e3e75bc.tar.gz px4-firmware-332e08b44a1081bf4e6fa969fa6c90c83e3e75bc.tar.bz2 px4-firmware-332e08b44a1081bf4e6fa969fa6c90c83e3e75bc.zip |
px4io driver: Deallocate perf counters in destructor properly
-rw-r--r-- | src/drivers/px4io/px4io.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/drivers/px4io/px4io.cpp b/src/drivers/px4io/px4io.cpp index f6b2af324..3c3b59862 100644 --- a/src/drivers/px4io/px4io.cpp +++ b/src/drivers/px4io/px4io.cpp @@ -529,6 +529,11 @@ PX4IO::~PX4IO() if (_interface != nullptr) delete _interface; + /* deallocate perfs */ + perf_free(_perf_update); + perf_free(_perf_write); + perf_free(_perf_chan_count); + g_dev = nullptr; } |