From 442cc8cc418201d97d01030b727d7ce7585dd1d8 Mon Sep 17 00:00:00 2001 From: MAYANK HAARIT Date: Tue, 17 Nov 2015 06:19:57 +0000 Subject: [PATCH] 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 Signed-off-by: Avichal Agarwal --- wpa_supplicant/dbus/dbus_new.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wpa_supplicant/dbus/dbus_new.c b/wpa_supplicant/dbus/dbus_new.c index 1bbfe4952..440b8cfc7 100644 --- a/wpa_supplicant/dbus/dbus_new.c +++ b/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); }