Revert "qcacld-2.0: Fix memory leak in wma_tdls_event_handler()"

Currently in wma_tdls_event_handler() there exists logic which
allocates a tSirTdlsEventNotify buffer.  There is subsequent
logic which fills the buffer and sends it to the upper layer.
During the buffer fill process there are currently some error
paths which will exit the function without freeing the buffer.
Add logic to those error paths to free the memory before returning.

This reverts commit 0e52b8e76534a85ce7115e1737e0b8ff9ceab569.

Change-Id: Ica0a2797754b693b12c33626646c259926867aed
CRs-Fixed: 929277
1 file changed
tree: 7d6e3e3f260df283e9bfb4f2a21a0a52c1ce6afa
  1. CORE/
  2. firmware_bin/
  3. wcnss/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile