Fix use-after-free in wifi_cleanup()

Release reference to cmd only after possibly calling getType().


BUG: 25753768
Change-Id: Id2156ce51acec04e8364706cf7eafc7d4adae9eb
(cherry picked from commit d7f3cb9915d9ac514393d0ad7767662958054b8f https://googleplex-android-review.git.corp.google.com/#/c/815223)
1 file changed
tree: 6dd20e95f82870642a05b05540957d6294922be8
  1. .gitignore
  2. CleanSpec.mk
  3. bcmdhd/