Browse Source

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>
Jouni Malinen 7 years ago
parent
commit
8a37d54ea7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/common/dpp.c

+ 1 - 0
src/common/dpp.c

@@ -3248,6 +3248,7 @@ skip_wrapped_data:
 	return msg;
 	return msg;
 
 
 fail:
 fail:
+	wpabuf_free(msg);
 	return NULL;
 	return NULL;
 }
 }