From: Masashi Honma Date: Wed, 26 Aug 2015 08:32:39 +0000 (+0900) Subject: mesh: Fix memory leak on error path X-Git-Tag: hostap_2_5~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=449d63d6b78c58ceac07a033067aa354c7cbec30;p=thirdparty%2Fhostap.git mesh: Fix memory leak on error path Signed-off-by: Masashi Honma --- 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; }