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>
This commit is contained in:
MAYANK HAARIT 2015-11-17 06:19:57 +00:00 committed by Jouni Malinen
parent 0603bcb7fe
commit 442cc8cc41

View file

@ -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);
}