libtracefs: Free the regex in update_filter()

A regex is used to match functions in update_filter() using the regcomp()
functionality. But regcomp() needs to release its resources via regfree()
which is lacking in this function.

Link: https://lore.kernel.org/linux-trace-devel/20210506100010.483b2374@gandalf.local.home

Fixes: 2df4a7ea ("libtracefs: Add checking of available_filter_functions to tracefs_function_filter()")
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
1 file changed