wlan:Fix the errors observed in static PE source code analysis.

Resolve the generic issues observed in static source code
analysis.

CRs-Fixed: 467286
Change-Id: I306b672845dea020cbf86714f5e13747935a3095
diff --git a/CORE/MAC/src/pe/lim/limSendManagementFrames.c b/CORE/MAC/src/pe/lim/limSendManagementFrames.c
index 0dbd432..0a2325b 100644
--- a/CORE/MAC/src/pe/lim/limSendManagementFrames.c
+++ b/CORE/MAC/src/pe/lim/limSendManagementFrames.c
@@ -536,6 +536,7 @@
         {
             limLog( pMac, LOGP, FL("Failed to retrieve WNI_CFG_BEACON_INTERVAL from CFG (%d).\n"),
                     nSirStatus );
+            palFreeMemory(pMac->hHdd, pFrm);
             return;
         }
         pFrm->BeaconInterval.interval = ( tANI_U16 ) cfg;