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: 1bd8b850077e91597b25dae81ff1545c42edac84
  1. .gitignore
  2. CleanSpec.mk
  3. bcmdhd/