wlan: SME: Free memory allocated to pMsg in case of failure

In csrSendJoinReqMsg(), memory allocated to pMsg gets freed
only in palSendMBMessage() but does not get freed in case of
abrupt break from while loop.

Initialising pMsg to NULL after palSendMBMessage() function
and freeing pMsg memory outside while loop after NULL check.

Change-Id: Ibdcee39b3337d737b5418b40a6d1b71cda1f90ef
CRs-Fixed: 703677
1 file changed
tree: 02c417d008eb516183371adc288c9e576b69c13e
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile