Message ID | 20240109231751.1e49addd@gandalf.local.home (mailing list archive) |
---|---|
State | Accepted |
Commit | 6ef58ed45cb03ecc48f1901a9beb16d8dc9252f5 |
Headers | show |
Series | trace-cmd reset: Fix -d option | expand |
diff --git a/tracecmd/trace-record.c b/tracecmd/trace-record.c index 16b73776..3114a664 100644 --- a/tracecmd/trace-record.c +++ b/tracecmd/trace-record.c @@ -5419,8 +5419,7 @@ void tracecmd_remove_instances(void) close(instance->tracing_on_fd); instance->tracing_on_fd = 0; } - if (tracefs_instance_is_new(instance->tracefs)) - tracefs_instance_destroy(instance->tracefs); + tracefs_instance_destroy(instance->tracefs); } }