From 5a544002cbd47843058e45d167ce62544e22df5f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 6 Jun 2016 15:21:17 +1000 Subject: [PATCH] Plane: fixed memory leak in mixer setup --- ArduPlane/px4_mixer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ArduPlane/px4_mixer.cpp b/ArduPlane/px4_mixer.cpp index 0d3bd05a4f..a11240fa85 100644 --- a/ArduPlane/px4_mixer.cpp +++ b/ArduPlane/px4_mixer.cpp @@ -254,6 +254,7 @@ bool Plane::setup_failsafe_mixing(void) new_crc = crc_calculate((uint8_t *)buf, fileSize); if ((int32_t)new_crc == last_mixer_crc) { + free(buf); return true; } else { last_mixer_crc = new_crc;