log: fix memory leak in regexp level set

Fixes: a5279180f5 ("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>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
This commit is contained in:
Ivan Malov 2018-01-21 17:05:10 +00:00 committed by Thomas Monjalon
parent ee7937ea69
commit 01aa0d95c8

View File

@ -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;
}