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
1 changed files with 1 additions and 0 deletions

View File

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