trace-cmd lib: Prevent a memory leak in read_ftrace_printk()

Free path if out_write_section_header() fails.

Fixes a RESOURCE_LEAK error (CWE-772)

Link: https://lore.kernel.org/linux-trace-devel/[email protected]

Signed-off-by: Jerome Marchand <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 file changed