summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasashi Honma <masashi.honma@gmail.com>2015-08-26 17:32:39 +0900
committerJouni Malinen <j@w1.fi>2015-09-05 21:31:25 +0300
commit449d63d6b78c58ceac07a033067aa354c7cbec30 (patch)
treef4433393e22a7d09693d29908097ec842095d5e7
parenta5d2bf247300fe35ff1d6e971116d9c8e6b8a87f (diff)
downloadhostap-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.c1
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;
}