aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/mesh_rsn.c
diff options
context:
space:
mode:
authorMasashi Honma <masashi.honma@gmail.com>2015-08-26 08:32:39 (GMT)
committerJouni Malinen <j@w1.fi>2015-09-05 18:31:25 (GMT)
commit449d63d6b78c58ceac07a033067aa354c7cbec30 (patch)
treef4433393e22a7d09693d29908097ec842095d5e7 /wpa_supplicant/mesh_rsn.c
parenta5d2bf247300fe35ff1d6e971116d9c8e6b8a87f (diff)
downloadhostap-449d63d6b78c58ceac07a033067aa354c7cbec30.zip
hostap-449d63d6b78c58ceac07a033067aa354c7cbec30.tar.gz
hostap-449d63d6b78c58ceac07a033067aa354c7cbec30.tar.bz2
mesh: Fix memory leak on error path
Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
Diffstat (limited to 'wpa_supplicant/mesh_rsn.c')
-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 9dce32f..747f1ae 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;
}