wpa_supplicant: Fix potential memleak on an error path
extra_buf allocation was missed in one of the error cases.
Fixes: 170775232d
("ANQP: Add support to specify frequency in ANQP_GET command")
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
This commit is contained in:
parent
fb83e4fbc3
commit
be5f7f3746
1 changed files with 1 additions and 0 deletions
|
@ -2793,6 +2793,7 @@ int anqp_send_req(struct wpa_supplicant *wpa_s, const u8 *dst, int freq,
|
||||||
wpa_printf(MSG_WARNING,
|
wpa_printf(MSG_WARNING,
|
||||||
"ANQP: Cannot send MBO query to unknown BSS "
|
"ANQP: Cannot send MBO query to unknown BSS "
|
||||||
MACSTR, MAC2STR(dst));
|
MACSTR, MAC2STR(dst));
|
||||||
|
wpabuf_free(extra_buf);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue