Browse Source

Fix memory leak on set_cred error path

Signed-hostap: Jouni Malinen <j@w1.fi>
Jouni Malinen 13 years ago
parent
commit
f4b2d69b07
1 changed files with 2 additions and 0 deletions
  1. 2 0
      wpa_supplicant/config.c

+ 2 - 0
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;
 }