dbus: Fix memory leak in wpas_dbus_getter_bss_wps

Signed-off-by: Slava Monich <slava.monich@jolla.com>
This commit is contained in:
Slava Monich 2014-10-28 18:20:37 +02:00 committed by Jouni Malinen
parent 6721909fb1
commit c66f23491e

View file

@ -3993,6 +3993,8 @@ dbus_bool_t wpas_dbus_getter_bss_wps(DBusMessageIter *iter, DBusError *error,
type = "pbc"; type = "pbc";
else if (wps_is_selected_pin_registrar(wps_ie)) else if (wps_is_selected_pin_registrar(wps_ie))
type = "pin"; type = "pin";
wpabuf_free(wps_ie);
} }
#endif /* CONFIG_WPS */ #endif /* CONFIG_WPS */