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:
parent
a6cd1be957
commit
52171e18c9
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue