3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-26 10:39:23 +01:00

wsc: Fix potential memory leak

If the netdev_connect_wsc call fails, handshake_state object isn't
freed.
This commit is contained in:
Denis Kenzior 2019-10-17 12:37:04 -05:00
parent 7397903234
commit aba73171f6

View File

@ -481,6 +481,7 @@ static void wsc_connect(struct wsc *wsc)
wsc_eapol_event, wsc) < 0) { wsc_eapol_event, wsc) < 0) {
dbus_pending_reply(&wsc->pending, dbus_pending_reply(&wsc->pending,
dbus_error_failed(wsc->pending)); dbus_error_failed(wsc->pending));
handshake_state_free(hs);
return; return;
} }