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

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