Plane: fixed memory leak in mixer setup
This commit is contained in:
parent
bb9086b87f
commit
5a544002cb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user