connman.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* main: Fix a memory leak for str_list in parse_config
       [not found] <CGME20210714090411epcms5p810fc79bcbc4f7a7d48028cb1f4d3ab27@epcms5p8>
@ 2021-07-14  9:04 ` Rahul Jain
  2021-07-20 11:58   ` Daniel Wagner
  0 siblings, 1 reply; 2+ messages in thread
From: Rahul Jain @ 2021-07-14  9:04 UTC (permalink / raw)
  To: connman; +Cc: AMIT KUMAR JAISWAL

commit 6e7844d37588612aa52722da6fa17468bd677b8c
Author: Rahul Jain <rahul.jain@samsung.com>
Date:   Wed Jul 14 14:30:48 2021 +0530

    main: Fix a memory leak for str_list in parse_config

diff --git a/src/main.c b/src/main.c
index 6480caa..25854e8 100644
--- a/src/main.c
+++ b/src/main.c
@@ -341,6 +341,8 @@ static void parse_config(GKeyFile *config)
                connman_settings.auto_connect =
                        parse_service_types(default_auto_connect, CONF_ARRAY_SIZE(default_auto_connect));
 
+       g_strfreev(str_list);
+
        g_clear_error(&error);
 
        str_list = __connman_config_get_string_list(config, "General",

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: main: Fix a memory leak for str_list in parse_config
  2021-07-14  9:04 ` main: Fix a memory leak for str_list in parse_config Rahul Jain
@ 2021-07-20 11:58   ` Daniel Wagner
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Wagner @ 2021-07-20 11:58 UTC (permalink / raw)
  To: Rahul Jain; +Cc: connman, AMIT KUMAR JAISWAL

Hi Rahul

On Wed, Jul 14, 2021 at 02:34:11PM +0530, Rahul Jain wrote:
> commit 6e7844d37588612aa52722da6fa17468bd677b8c
> Author: Rahul Jain <rahul.jain@samsung.com>
> Date:   Wed Jul 14 14:30:48 2021 +0530
> 
>     main: Fix a memory leak for str_list in parse_config

Patch applied.

Thanks,
Daniel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-07-20 12:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CGME20210714090411epcms5p810fc79bcbc4f7a7d48028cb1f4d3ab27@epcms5p8>
2021-07-14  9:04 ` main: Fix a memory leak for str_list in parse_config Rahul Jain
2021-07-20 11:58   ` Daniel Wagner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).