wlan:Fix memory leak in limProcessTdls.c

Currently dynamic memory is allocated to pMsgTdlsChanSwitch.
But if the operating class of pMsgTdlsChanSwitch is 0,it simply
exits function without deallocating memory.As a part of fix,
memory is freed before returning from function.

Change-Id: If1fea34a0e7e1ff058bd80dcfc91303027dc8d58
CRs-Fixed: 737766
diff --git a/CORE/MAC/src/pe/lim/limProcessTdls.c b/CORE/MAC/src/pe/lim/limProcessTdls.c
index 6a7c3f3..ddada8c 100644
--- a/CORE/MAC/src/pe/lim/limProcessTdls.c
+++ b/CORE/MAC/src/pe/lim/limProcessTdls.c
@@ -5982,6 +5982,7 @@
 
         VOS_TRACE(VOS_MODULE_ID_PE, VOS_TRACE_LEVEL_ERROR,
                                    "Invalid Operating class 0 !!!");
+        vos_mem_free(pMsgTdlsChanSwitch);
         goto lim_tdls_chan_switch_error;
     }
     else
@@ -6004,6 +6005,7 @@
     if(eSIR_SUCCESS != wdaPostCtrlMsg(pMac, &msg))
     {
         limLog(pMac, LOGE, FL("halPostMsgApi failed\n"));
+        vos_mem_free(pMsgTdlsChanSwitch);
         goto lim_tdls_chan_switch_error;
     }