From f4b2d69b0760767f1667e801ef1c34642e21b60c Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 19 Feb 2012 14:29:38 +0200 Subject: [PATCH] Fix memory leak on set_cred error path Signed-hostap: Jouni Malinen --- wpa_supplicant/config.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wpa_supplicant/config.c b/wpa_supplicant/config.c index 22b00e5c8..7ba2df61e 100644 --- a/wpa_supplicant/config.c +++ b/wpa_supplicant/config.c @@ -2276,6 +2276,8 @@ int wpa_config_set_cred(struct wpa_cred *cred, const char *var, line, var); } + os_free(val); + return -1; }