From 87a1c5514582092f29f522c75fc1e7b35a1103df Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Wed, 16 Oct 2019 16:21:50 -0700 Subject: [PATCH] hotspot: fix multiple potential memory leaks --- src/hotspot.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hotspot.c b/src/hotspot.c index 20ebb2fd..ad8af37c 100644 --- a/src/hotspot.c +++ b/src/hotspot.c @@ -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;