Plane: fixed memory leak in mixer setup

This commit is contained in:
Andrew Tridgell 2016-06-06 15:21:17 +10:00
parent bb9086b87f
commit 5a544002cb

View File

@ -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;