mka: Fix a memory leak on error path

Fix a minor memory leak in ieee802_1x_kay_create_mka() in
case of KEK/ICK derivation failure.

Signed-off-by: Andrey Kartashev <andrey.kartashev@afconsult.com>
This commit is contained in:
Andrey Kartashev 2018-11-02 19:02:16 +01:00 committed by Jouni Malinen
parent a6cd1be957
commit 52171e18c9

View file

@ -3550,6 +3550,7 @@ ieee802_1x_kay_create_mka(struct ieee802_1x_kay *kay,
return participant;
fail:
os_free(participant->txsc);
os_free(participant);
return NULL;
}