Wifi-HAL: Avoid possible memleak in nan_debug_command_config

If framework passes a non-positive value for debug_msg_length
to wifihal, it returns without deleting the object created.
This is a memleak, Validate the value of debug_msg_length
before creating object to avoid this memleak.

Change-Id: Ia7a5f61eed5c1922a30554b89417645038715d7d
CRs-Fixed: 2112540
1 file changed
tree: 99a85885e34a758a82123bcc4bbdd70541b285f1
  1. cld80211-lib/
  2. qcwcn/
  3. wcnss-service/
  4. Android.mk