mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-17 18:34:03 -05:00
mesh: Fix memory leak on error path
Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
This commit is contained in:
parent
a5d2bf2473
commit
449d63d6b7
@ -210,6 +210,7 @@ struct mesh_rsn *mesh_rsn_auth_init(struct wpa_supplicant *wpa_s,
|
||||
|
||||
if (__mesh_rsn_auth_init(mesh_rsn, wpa_s->own_addr) < 0) {
|
||||
mesh_rsn_deinit(mesh_rsn);
|
||||
os_free(mesh_rsn);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user