Browse Source

dbus: Fix memory leak in wpas_dbus_getter_bss_wps

Signed-off-by: Slava Monich <slava.monich@jolla.com>
Slava Monich 10 years ago
parent
commit
c66f23491e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      wpa_supplicant/dbus/dbus_new_handlers.c

+ 2 - 0
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 */