diff options
author | Sreenath Sharma <sreenath.sharma@broadcom.com> | 2016-05-05 11:13:58 +0530 |
---|---|---|
committer | Ningyuan Wang <nywang@google.com> | 2016-05-05 13:37:47 -0700 |
commit | 6587f308b0c2d658dfe7cd988518d158cbd2f202 (patch) | |
tree | dd4649f3b09a3e80ca30fbae4ccada9b7c34ad0b | |
parent | 37644ca6a81aab0b2ae6fb81f629b98b1b23a8d7 (diff) | |
download | platform_hardware_broadcom_wlan-6587f308b0c2d658dfe7cd988518d158cbd2f202.tar.gz platform_hardware_broadcom_wlan-6587f308b0c2d658dfe7cd988518d158cbd2f202.tar.bz2 platform_hardware_broadcom_wlan-6587f308b0c2d658dfe7cd988518d158cbd2f202.zip |
WiFi HAL: fix delete mismatch warning
Use 'delete[]' instead of 'delete' for memory allocated with 'new[]'
Cherry pickerd from
https://partner-android-review.googlesource.com/#/c/598071/
BUG=28614926
Change-Id: I75dfd8a8d94d7a754723381e1f549b2d1bc1c69b
Signed-off-by: Sreenath Sharma <sreenath.sharma@broadcom.com>
-rw-r--r-- | bcmdhd/wifi_hal/wifi_hal.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bcmdhd/wifi_hal/wifi_hal.cpp b/bcmdhd/wifi_hal/wifi_hal.cpp index 59c03c6..251414b 100644 --- a/bcmdhd/wifi_hal/wifi_hal.cpp +++ b/bcmdhd/wifi_hal/wifi_hal.cpp @@ -879,7 +879,7 @@ class AndroidPktFilterCommand : public WifiCommand { return result; } request.attr_end(data); - delete program; + delete[] program; return result; } |