diff options
author | Masashi Honma <masashi.honma@gmail.com> | 2015-08-26 17:32:39 +0900 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2015-09-05 21:31:25 +0300 |
commit | 449d63d6b78c58ceac07a033067aa354c7cbec30 (patch) | |
tree | f4433393e22a7d09693d29908097ec842095d5e7 | |
parent | a5d2bf247300fe35ff1d6e971116d9c8e6b8a87f (diff) | |
download | hostap-449d63d6b78c58ceac07a033067aa354c7cbec30.tar.gz |
mesh: Fix memory leak on error path
Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
-rw-r--r-- | wpa_supplicant/mesh_rsn.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/mesh_rsn.c b/wpa_supplicant/mesh_rsn.c index 9dce32f42..747f1ae69 100644 --- a/wpa_supplicant/mesh_rsn.c +++ b/wpa_supplicant/mesh_rsn.c @@ -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; } |