From: Jouni Malinen Date: Wed, 29 Nov 2017 19:20:45 +0000 (+0200) Subject: DPP: Fix memory leak on dpp_auth_build_conf() error paths X-Git-Tag: hostap_2_7~759 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a37d54ea7a511b6964b50b2e773daa91b839cf2;p=thirdparty%2Fhostap.git 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 --- diff --git a/src/common/dpp.c b/src/common/dpp.c index c70f73b0c..6927be08a 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; }