diff --git a/src/ap/dpp_hostapd.c b/src/ap/dpp_hostapd.c index 81c398927..23b8ec6b5 100644 --- a/src/ap/dpp_hostapd.c +++ b/src/ap/dpp_hostapd.c @@ -1692,6 +1692,8 @@ void hostapd_dpp_stop(struct hostapd_data *hapd) { dpp_auth_deinit(hapd->dpp_auth); hapd->dpp_auth = NULL; + dpp_pkex_free(hapd->dpp_pkex); + hapd->dpp_pkex = NULL; } diff --git a/wpa_supplicant/dpp_supplicant.c b/wpa_supplicant/dpp_supplicant.c index 693d3853c..8661672cd 100644 --- a/wpa_supplicant/dpp_supplicant.c +++ b/wpa_supplicant/dpp_supplicant.c @@ -2448,6 +2448,8 @@ void wpas_dpp_stop(struct wpa_supplicant *wpa_s) { dpp_auth_deinit(wpa_s->dpp_auth); wpa_s->dpp_auth = NULL; + dpp_pkex_free(wpa_s->dpp_pkex); + wpa_s->dpp_pkex = NULL; }