mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 02:02:33 +01:00
hotspot: Fix mem leak on failed hotspot config
This commit is contained in:
parent
13bb8c1afe
commit
d8f98a5f20
@ -423,13 +423,12 @@ static void hs20_dir_watch_cb(const char *filename,
|
|||||||
}
|
}
|
||||||
|
|
||||||
config = hs20_config_new(new, full_path);
|
config = hs20_config_new(new, full_path);
|
||||||
if (!config)
|
|
||||||
break;
|
|
||||||
|
|
||||||
l_queue_push_head(hs20_settings, config);
|
|
||||||
|
|
||||||
l_settings_free(new);
|
l_settings_free(new);
|
||||||
|
|
||||||
|
if (!config)
|
||||||
|
return;
|
||||||
|
|
||||||
|
l_queue_push_head(hs20_settings, config);
|
||||||
break;
|
break;
|
||||||
case L_DIR_WATCH_EVENT_REMOVED:
|
case L_DIR_WATCH_EVENT_REMOVED:
|
||||||
config = l_queue_remove_if(hs20_settings, match_filename,
|
config = l_queue_remove_if(hs20_settings, match_filename,
|
||||||
|
Loading…
Reference in New Issue
Block a user