From c66f23491edc68747b3d9a4e34025f0180a3a7c1 Mon Sep 17 00:00:00 2001 From: Slava Monich Date: Tue, 28 Oct 2014 18:20:37 +0200 Subject: [PATCH] dbus: Fix memory leak in wpas_dbus_getter_bss_wps Signed-off-by: Slava Monich --- wpa_supplicant/dbus/dbus_new_handlers.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wpa_supplicant/dbus/dbus_new_handlers.c b/wpa_supplicant/dbus/dbus_new_handlers.c index 9f6c4a39b..aaaf4f00d 100644 --- a/wpa_supplicant/dbus/dbus_new_handlers.c +++ b/wpa_supplicant/dbus/dbus_new_handlers.c @@ -3993,6 +3993,8 @@ dbus_bool_t wpas_dbus_getter_bss_wps(DBusMessageIter *iter, DBusError *error, type = "pbc"; else if (wps_is_selected_pin_registrar(wps_ie)) type = "pin"; + + wpabuf_free(wps_ie); } #endif /* CONFIG_WPS */