Browse Source

tap_esc: fix resource leak (#18296)

master
Hyungsub 3 years ago committed by GitHub
parent
commit
5677ab042b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/drivers/magnetometer/lsm9ds1_mag/LSM9DS1_MAG.cpp
  2. 1
      src/drivers/tap_esc/tap_esc_uploader.cpp

1
src/drivers/magnetometer/lsm9ds1_mag/LSM9DS1_MAG.cpp

@ -176,7 +176,6 @@ void LSM9DS1_MAG::RunImpl() @@ -176,7 +176,6 @@ void LSM9DS1_MAG::RunImpl()
// sensor Z is up (RHC), flip z for publication
// sensor X is aligned with -X of lsm9ds1 accel/gyro
x = (x == INT16_MIN) ? INT16_MAX : -x;
y = y;
z = (z == INT16_MIN) ? INT16_MAX : -z;
_px4_mag.update(now, x, y, z);

1
src/drivers/tap_esc/tap_esc_uploader.cpp

@ -1110,6 +1110,7 @@ int TAP_ESC_UPLOADER::verify_crc(uint8_t esc_id, size_t fw_size_local) @@ -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;
}

Loading…
Cancel
Save