WiFi HAL: fix delete mismatch warning
Sreenath Sharma [Thu, 5 May 2016 05:43:58 +0000 (10:43 +0530)]
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>

bcmdhd/wifi_hal/wifi_hal.cpp

index 59c03c6..251414b 100644 (file)
@@ -879,7 +879,7 @@ class AndroidPktFilterCommand : public WifiCommand {
             return result;
         }
         request.attr_end(data);
-        delete program;
+        delete[] program;
         return result;
     }