IBSS: Fix a memory leak on RSN error path
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
5f040be4ff
commit
b97a541087
1 changed files with 1 additions and 0 deletions
|
@ -221,6 +221,7 @@ static int ibss_rsn_supp_init(struct ibss_rsn_peer *peer, const u8 *own_addr,
|
||||||
peer->supp = wpa_sm_init(ctx);
|
peer->supp = wpa_sm_init(ctx);
|
||||||
if (peer->supp == NULL) {
|
if (peer->supp == NULL) {
|
||||||
wpa_printf(MSG_DEBUG, "SUPP: wpa_sm_init() failed");
|
wpa_printf(MSG_DEBUG, "SUPP: wpa_sm_init() failed");
|
||||||
|
os_free(ctx);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue