P2P: Fix memory leak in SD service entries
Need to flush stored service entries when wpa_supplicant is being terminated.
This commit is contained in:
parent
bf608cad56
commit
2a43101e48
1 changed files with 2 additions and 0 deletions
|
@ -2190,6 +2190,8 @@ void wpas_p2p_deinit_global(struct wpa_global *global)
|
||||||
|
|
||||||
/* Remove remaining P2P group interfaces */
|
/* Remove remaining P2P group interfaces */
|
||||||
wpa_s = global->ifaces;
|
wpa_s = global->ifaces;
|
||||||
|
if (wpa_s)
|
||||||
|
wpas_p2p_service_flush(wpa_s);
|
||||||
while (wpa_s && wpa_s->p2p_group_interface != NOT_P2P_GROUP_INTERFACE)
|
while (wpa_s && wpa_s->p2p_group_interface != NOT_P2P_GROUP_INTERFACE)
|
||||||
wpa_s = wpa_s->next;
|
wpa_s = wpa_s->next;
|
||||||
while (wpa_s) {
|
while (wpa_s) {
|
||||||
|
|
Loading…
Reference in a new issue