mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-09 08:22:42 +01:00
hotspot: fix multiple potential memory leaks
This commit is contained in:
parent
b3799a9f8d
commit
87a1c55145
@ -423,6 +423,8 @@ static void hs20_dir_watch_cb(const char *filename,
|
|||||||
|
|
||||||
l_queue_push_head(hs20_settings, config);
|
l_queue_push_head(hs20_settings, config);
|
||||||
|
|
||||||
|
l_settings_free(new);
|
||||||
|
|
||||||
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,
|
||||||
@ -453,6 +455,8 @@ static void hs20_dir_watch_cb(const char *filename,
|
|||||||
|
|
||||||
known_network_update(&config->super, new, connected_time);
|
known_network_update(&config->super, new, connected_time);
|
||||||
|
|
||||||
|
l_settings_free(new);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case L_DIR_WATCH_EVENT_ACCESSED:
|
case L_DIR_WATCH_EVENT_ACCESSED:
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user