Fix external radio_work deinit path
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 14 Mar 2014 18:33:56 +0000 (20:33 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 14 Mar 2014 19:58:46 +0000 (21:58 +0200)
commit6829da39e6cc164ea3fba9d28778f461f17124cc
treeea7d899bae88f47d1f97e4a5e56bd46ebf955025
parent8dd9f9cdde4b865a7b611a2ed5b97a849ac945bc
Fix external radio_work deinit path

The radio_work type was stored within the dynamically allocated
wpa_radio_work buffer and that buffer ended up getting freed before the
final use of the type string within radio_work_done(). This resulted in
freed memory being used for a debug print. Avoid this by freeing the
wpa_external_work instance after having completed radio_work_done() for
the related work.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/ctrl_iface.c