dbus: Fix memory leak in sending InvitationReceived signal
authorMAYANK HAARIT <mayank.h@samsung.com>
Tue, 17 Nov 2015 06:19:57 +0000 (06:19 +0000)
committerJouni Malinen <j@w1.fi>
Tue, 17 Nov 2015 15:20:03 +0000 (17:20 +0200)
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>
wpa_supplicant/dbus/dbus_new.c

index 1bbfe49..440b8cf 100644 (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);
 }