ConnMan network manager
 help / color / 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	[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, back to index

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

ConnMan network manager

Archives are clonable:
	git clone --mirror https://lore.kernel.org/connman/0 connman/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 connman connman/ https://lore.kernel.org/connman \
		connman@lists.linux.dev
	public-inbox-index connman

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/dev.linux.lists.connman


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git