Browse Source

dbus: Fix memory leak in sending InvitationReceived signal

Free the message after message send in
wpas_dbus_signal_p2p_invitation_received() to avoid leaking memory.

Signed-off-by: Mayank Haarit <mayank.h@samsung.com>
Signed-off-by: Avichal Agarwal <avichal.a@samsung.com>
MAYANK HAARIT 9 years ago
parent
commit
442cc8cc41
1 changed files with 1 additions and 0 deletions
  1. 1 0
      wpa_supplicant/dbus/dbus_new.c

+ 1 - 0
wpa_supplicant/dbus/dbus_new.c

@@ -1950,6 +1950,7 @@ void wpas_dbus_signal_p2p_invitation_received(struct wpa_supplicant *wpa_s,
 	}
 
 	dbus_connection_send(iface->con, msg, NULL);
+	dbus_message_unref(msg);
 }