DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] eal: fix a memory leak in regexp log level set API
@ 2018-01-21 17:05 Andrew Rybchenko
  2018-01-22  2:46 ` [dpdk-dev] [dpdk-stable] " Ferruh Yigit
  2018-01-22 13:17 ` [dpdk-dev] " Olivier Matz
  0 siblings, 2 replies; 4+ messages in thread
From: Andrew Rybchenko @ 2018-01-21 17:05 UTC (permalink / raw)
  To: dev; +Cc: Olivier Matz, Ivan Malov, stable

From: Ivan Malov <ivan.malov@oktetlabs.ru>

Fixes: a5279180f510 ("eal: change several log levels matching a regexp")
Cc: stable@dpdk.org

Signed-off-by: Ivan Malov <ivan.malov@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
---
 lib/librte_eal/common/eal_common_log.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/librte_eal/common/eal_common_log.c b/lib/librte_eal/common/eal_common_log.c
index 5a3400e..37b2e20 100644
--- a/lib/librte_eal/common/eal_common_log.c
+++ b/lib/librte_eal/common/eal_common_log.c
@@ -110,6 +110,8 @@ rte_log_set_level_regexp(const char *pattern, uint32_t level)
 			rte_logs.dynamic_types[i].loglevel = level;
 	}
 
+	regfree(&r);
+
 	return 0;
 }
 
-- 
2.7.4

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

* Re: [dpdk-dev] [dpdk-stable] [PATCH] eal: fix a memory leak in regexp log level set API
  2018-01-21 17:05 [dpdk-dev] [PATCH] eal: fix a memory leak in regexp log level set API Andrew Rybchenko
@ 2018-01-22  2:46 ` Ferruh Yigit
  2018-01-22 13:17 ` [dpdk-dev] " Olivier Matz
  1 sibling, 0 replies; 4+ messages in thread
From: Ferruh Yigit @ 2018-01-22  2:46 UTC (permalink / raw)
  To: Andrew Rybchenko, dev; +Cc: Olivier Matz, Ivan Malov, stable

On 1/21/2018 5:05 PM, Andrew Rybchenko wrote:
> From: Ivan Malov <ivan.malov@oktetlabs.ru>
> 
> Fixes: a5279180f510 ("eal: change several log levels matching a regexp")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Ivan Malov <ivan.malov@oktetlabs.ru>
> Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>

Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>

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

* Re: [dpdk-dev] [PATCH] eal: fix a memory leak in regexp log level set API
  2018-01-21 17:05 [dpdk-dev] [PATCH] eal: fix a memory leak in regexp log level set API Andrew Rybchenko
  2018-01-22  2:46 ` [dpdk-dev] [dpdk-stable] " Ferruh Yigit
@ 2018-01-22 13:17 ` Olivier Matz
  2018-01-25 22:33   ` Thomas Monjalon
  1 sibling, 1 reply; 4+ messages in thread
From: Olivier Matz @ 2018-01-22 13:17 UTC (permalink / raw)
  To: Andrew Rybchenko; +Cc: dev, Ivan Malov, stable

On Sun, Jan 21, 2018 at 05:05:10PM +0000, Andrew Rybchenko wrote:
> From: Ivan Malov <ivan.malov@oktetlabs.ru>
> 
> Fixes: a5279180f510 ("eal: change several log levels matching a regexp")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Ivan Malov <ivan.malov@oktetlabs.ru>
> Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>

Acked-by: Olivier Matz <olivier.matz@6wind.com>

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

* Re: [dpdk-dev] [PATCH] eal: fix a memory leak in regexp log level set API
  2018-01-22 13:17 ` [dpdk-dev] " Olivier Matz
@ 2018-01-25 22:33   ` Thomas Monjalon
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Monjalon @ 2018-01-25 22:33 UTC (permalink / raw)
  To: Andrew Rybchenko, Ivan Malov; +Cc: dev, Olivier Matz, stable

22/01/2018 14:17, Olivier Matz:
> On Sun, Jan 21, 2018 at 05:05:10PM +0000, Andrew Rybchenko wrote:
> > From: Ivan Malov <ivan.malov@oktetlabs.ru>
> > 
> > Fixes: a5279180f510 ("eal: change several log levels matching a regexp")
> > Cc: stable@dpdk.org
> > 
> > Signed-off-by: Ivan Malov <ivan.malov@oktetlabs.ru>
> > Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
> 
> Acked-by: Olivier Matz <olivier.matz@6wind.com>

Applied, thanks

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

end of thread, other threads:[~2018-01-25 22:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-21 17:05 [dpdk-dev] [PATCH] eal: fix a memory leak in regexp log level set API Andrew Rybchenko
2018-01-22  2:46 ` [dpdk-dev] [dpdk-stable] " Ferruh Yigit
2018-01-22 13:17 ` [dpdk-dev] " Olivier Matz
2018-01-25 22:33   ` Thomas Monjalon

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).