aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2017-11-29 19:20:45 (GMT)
committerJouni Malinen <j@w1.fi>2017-11-29 19:21:34 (GMT)
commit8a37d54ea7a511b6964b50b2e773daa91b839cf2 (patch)
treed09c1f3e5da3add8835499bb32fa502c6792972f
parent281f480c531f950fd3ed4dfc507aa3b2bebf942c (diff)
downloadhostap-8a37d54ea7a511b6964b50b2e773daa91b839cf2.zip
hostap-8a37d54ea7a511b6964b50b2e773daa91b839cf2.tar.gz
hostap-8a37d54ea7a511b6964b50b2e773daa91b839cf2.tar.bz2
DPP: Fix memory leak on dpp_auth_build_conf() error paths
The wpabuf for the message needs to be freed on the error paths. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
-rw-r--r--src/common/dpp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/dpp.c b/src/common/dpp.c
index c70f73b..6927be0 100644
--- a/src/common/dpp.c
+++ b/src/common/dpp.c
@@ -3248,6 +3248,7 @@ skip_wrapped_data:
return msg;
fail:
+ wpabuf_free(msg);
return NULL;
}