mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 21:22:37 +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_settings_free(new);
|
||||
|
||||
break;
|
||||
case L_DIR_WATCH_EVENT_REMOVED:
|
||||
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);
|
||||
|
||||
l_settings_free(new);
|
||||
|
||||
break;
|
||||
case L_DIR_WATCH_EVENT_ACCESSED:
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user