summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSreenath Sharma <sreenath.sharma@broadcom.com>2016-05-05 11:13:58 +0530
committerNingyuan Wang <nywang@google.com>2016-05-05 13:37:47 -0700
commit6587f308b0c2d658dfe7cd988518d158cbd2f202 (patch)
treedd4649f3b09a3e80ca30fbae4ccada9b7c34ad0b
parent37644ca6a81aab0b2ae6fb81f629b98b1b23a8d7 (diff)
downloadplatform_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.cpp2
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;
}