]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix memory leak on set_cred error path
authorJouni Malinen <j@w1.fi>
Sun, 19 Feb 2012 12:29:38 +0000 (14:29 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 19 Feb 2012 12:29:38 +0000 (14:29 +0200)
Signed-hostap: Jouni Malinen <j@w1.fi>

wpa_supplicant/config.c

index 22b00e5c80bf08bf3c88943724675246d106cc38..7ba2df61e31107f3d94c90d87eb9f39151d5eedd 100644 (file)
@@ -2276,6 +2276,8 @@ int wpa_config_set_cred(struct wpa_cred *cred, const char *var,
                           line, var);
        }
 
+       os_free(val);
+
        return -1;
 }