From 8a37d54ea7a511b6964b50b2e773daa91b839cf2 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Wed, 29 Nov 2017 21:20:45 +0200 Subject: [PATCH] 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 --- src/common/dpp.c | 1 + 1 file changed, 1 insertion(+) 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; }