qcacld-3.0: Free body if session is NULL in lim_process_switch_channel_rsp

In lim_process_switch_channel_rsp, if pe_find_session_by_session_id
returns NULL, memory of body pointer is not freed leading to memory
leak.

Free memory allocated for body pointer if session entry is NULL in
lim_process_switch_channel_rsp.

Change-Id: I939aceb3ed993fd1488b72db9df526c1724f0ac5
CRs-Fixed: 2236980
1 file changed
tree: 3f079afa9a591b3c322b1edda36730b55a5fa265
  1. components/
  2. core/
  3. uapi/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile
  8. README.txt