mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 10:39:23 +01:00
ap: Add missing ap_config_free() in error path
This commit is contained in:
parent
fe6f4153c5
commit
3621e998c9
4
src/ap.c
4
src/ap.c
@ -3119,8 +3119,10 @@ static struct l_dbus_message *ap_dbus_start_profile(struct l_dbus *dbus,
|
||||
config->profile = storage_get_path("ap/%s.ap", ssid);
|
||||
|
||||
ap_if->ap = ap_start(ap_if->netdev, config, &ap_dbus_ops, &err, ap_if);
|
||||
if (!ap_if->ap)
|
||||
if (!ap_if->ap) {
|
||||
ap_config_free(config);
|
||||
return dbus_error_from_errno(err, message);
|
||||
}
|
||||
|
||||
ap_if->pending = l_dbus_message_ref(message);
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user