mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-17 18:34:03 -05:00
WPS: Fix a potential memory leak on wps_init() error path
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
3385647da9
commit
315dbfb11e
@ -110,6 +110,7 @@ struct wps_data * wps_init(const struct wps_config *cfg)
|
||||
data->new_ap_settings =
|
||||
os_malloc(sizeof(*data->new_ap_settings));
|
||||
if (data->new_ap_settings == NULL) {
|
||||
os_free(data->dev_password);
|
||||
os_free(data);
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user