commit 0ae3e1c59d2ac9bad46eab332920108e4d2de255
parent 17ba7e415b33bfd3f757493d7f2e1975d6a6341a
Author: James Prestwood <prestwoj@gmail.com>
Date: Mon, 8 Feb 2021 12:19:57 -0800
ap: free passphrase on error
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/ap.c b/src/ap.c
@@ -2568,6 +2568,7 @@ static int ap_load_profile_and_dhcp(struct ap_state *ap, bool *wait_dhcp)
if (strlen(passphrase) > 63) {
l_error("[Security].Passphrase must not exceed "
"63 characters");
+ l_free(passphrase);
return -EINVAL;
}