Add missing memory free in sample WiFi PAL implementations am: f765a5c672

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/chre/+/12909971

Change-Id: Icd1a97365ac25f7befbd3c26196571c411f3e928
diff --git a/chpp/platform/linux/services/platform_wifi.c b/chpp/platform/linux/services/platform_wifi.c
index 9214003..fe4347d 100644
--- a/chpp/platform/linux/services/platform_wifi.c
+++ b/chpp/platform/linux/services/platform_wifi.c
@@ -64,6 +64,7 @@
 }
 
 static void wifiPalReleaseRangingEvent(struct chreWifiRangingEvent *event) {
+  gSystemApi->memoryFree(CHPP_CONST_CAST_POINTER(event->scannedFreqList));
   gSystemApi->memoryFree(CHPP_CONST_CAST_POINTER(event->results));
   gSystemApi->memoryFree(event);
 }
diff --git a/platform/linux/pal_wifi.cc b/platform/linux/pal_wifi.cc
index e558f7c..acb31a9 100644
--- a/platform/linux/pal_wifi.cc
+++ b/platform/linux/pal_wifi.cc
@@ -87,6 +87,7 @@
 }
 
 void chrePalWifiApiReleaseScanEvent(struct chreWifiScanEvent *event) {
+  chre::memoryFree(const_cast<uint32_t *>(event->scannedFreqList));
   chre::memoryFree(const_cast<struct chreWifiScanResult *>(event->results));
   chre::memoryFree(event);
 }