WMM AC: Fix memory leak on deinit without disassoc event
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 27 Nov 2014 17:00:02 +0000 (19:00 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 27 Nov 2014 17:00:02 +0000 (19:00 +0200)
commit3882a70841b0ad0548ca8075e8fabd2915848389
treef8247253a59729a0a5a95371d0e3d37089e9599f
parent7ee6ec7aec775c6e463c9e19eeefdde603d59a23
WMM AC: Fix memory leak on deinit without disassoc event

It was possible for wmm_ac_deinit() not getting called when an interface
was removed in a sequence where disassociation was not reported and
wmm_ac_notify_disassoc() did not get called. This resulted in leaking
whatever memory was allocated for WMM AC parameters. Fix that by calling
wmm_ac_notify_disassoc() from wpa_supplicant_cleanup().

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