wlan: fix CSR TDLS issues found by static source analysis

Static source code analysis identified four issues in
csrTdlsProcess.c.  Three of the issues are memory leaks.  Fix these by
rearranging the code such that sanity checks are performed before
memory is allocated.  The last issue is the potential use of an
uninitialized variable.  Fix this by modifying conditional code to
make sure there is no path where the variable is not initialized.

Change-Id: I657dff78a4c50f2b702035c714300a3d0abb6d38
CRs-fixed: 470188
1 file changed
tree: 97c2073e2ab9c219194a7f5c6d6db109eae28df5
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig