[1/2] trace-cmd: Fix a crash on "trace-cmd reset" command
diff mbox series

Message ID 20191018145759.15335-1-tz.stoyanov@gmail.com
State Accepted
Commit d4c9865b21ef2293faaf70ef7e578b1ecb1ac15c
Headers show
Series
  • [1/2] trace-cmd: Fix a crash on "trace-cmd reset" command
Related show

Commit Message

Tzvetomir Stoyanov (VMware) Oct. 18, 2019, 2:57 p.m. UTC
A leftover in reset_cpu_mask() function causes a segmentation
fault of "trace-cmd reset".

Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com>
---
 tracecmd/trace-record.c | 2 --
 1 file changed, 2 deletions(-)

Patch
diff mbox series

diff --git a/tracecmd/trace-record.c b/tracecmd/trace-record.c
index cfe67f9..81aca1f 100644
--- a/tracecmd/trace-record.c
+++ b/tracecmd/trace-record.c
@@ -4113,8 +4113,6 @@  static void reset_cpu_mask(void)
 
 	for_all_instances(instance)
 		write_instance_file(instance, "tracing_cpumask", buf, "cpumask");
-
-	free(buf);
 }
 
 static void reset_event_pid(void)