aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/dbus
diff options
context:
space:
mode:
authorMAYANK HAARIT <mayank.h@samsung.com>2015-11-17 06:19:57 (GMT)
committerJouni Malinen <j@w1.fi>2015-11-17 15:20:03 (GMT)
commit442cc8cc418201d97d01030b727d7ce7585dd1d8 (patch)
tree144ce37e887fe1323fb7e567ebdf3ebe462b14bb /wpa_supplicant/dbus
parent0603bcb7fe8babf183362518238c142afe8e2036 (diff)
downloadhostap-442cc8cc418201d97d01030b727d7ce7585dd1d8.zip
hostap-442cc8cc418201d97d01030b727d7ce7585dd1d8.tar.gz
hostap-442cc8cc418201d97d01030b727d7ce7585dd1d8.tar.bz2
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>
Diffstat (limited to 'wpa_supplicant/dbus')
-rw-r--r--wpa_supplicant/dbus/dbus_new.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/dbus/dbus_new.c b/wpa_supplicant/dbus/dbus_new.c
index 1bbfe49..440b8cf 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);
}