wlan: Fix double free issue

If buf is consumed by called function then check status returned
by function and free buffer accordingly.

CRs-Fixed: 467427
Change-Id: Iabb0afe91bb1786051d9fa57dc9d0a6636a35c7a
1 file changed
tree: c3f7e75d641c247b2e2c2ed8754cb4a2eb6581b5
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig