tap_esc: fix resource leak (#18296)

This commit is contained in:
Hyungsub
2021-09-29 14:51:31 +02:00
committed by GitHub
parent 03bd5e0f48
commit 5677ab042b
2 changed files with 1 additions and 1 deletions
+1
View File
@@ -1110,6 +1110,7 @@ int TAP_ESC_UPLOADER::verify_crc(uint8_t esc_id, size_t fw_size_local)
if (ret != OK) {
PX4_DEBUG("could not read firmware size");
delete [] file_buf;
return ret;
}