prima: Avoid Memory leak in HDD during scan

After providing cached scan results for scan request received
within deferred scan time interval, release allocated memory to avoid
memory leak.

Change-Id: I8e5563dc8a4c015170fcc3c1f81a169b2ca979a1
CRs-Fixed: 790472
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 9de887c..20bb1c2 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -10011,14 +10011,16 @@
                                         pAdapter);
 
            hddLog(VOS_TRACE_LEVEL_WARN,
-                "Return old cached scan as all channels"
-                "and no of channles are same");
+                  "Return old cached scan as all channels and no of channels are same");
+
            if (0 > ret)
-                hddLog(VOS_TRACE_LEVEL_INFO, "%s: NO SCAN result", __func__);
+               hddLog(VOS_TRACE_LEVEL_INFO, "%s: NO SCAN result", __func__);
 
            cfg80211_scan_done(request, eCSR_SCAN_SUCCESS);
-           return eHAL_STATUS_SUCCESS ;
-       }
+
+           status = eHAL_STATUS_SUCCESS;
+           goto free_mem;
+        }
     }
 
     /* Flush the scan results(only p2p beacons) for STA scan and P2P