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:
parent
0603bcb7fe
commit
442cc8cc41
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue