* [PATCH] libtracefs: Have tracefs_instance_destroy() match the man page
@ 2021-04-12 20:53 Steven Rostedt
0 siblings, 0 replies; only message in thread
From: Steven Rostedt @ 2021-04-12 20:53 UTC (permalink / raw)
To: Linux Trace Devel
From: "Steven Rostedt (VMware)" <rostedt@goodmis.org>
According to the man page of tracefs_instance_destroy():
"The tracefs_instance_destroy() frees the instance structure, and will also
remove the trace instance from the system."
But, it does not actually free the instance. Have it do so.
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
---
src/tracefs-instance.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/tracefs-instance.c b/src/tracefs-instance.c
index b8ce36f..67e7991 100644
--- a/src/tracefs-instance.c
+++ b/src/tracefs-instance.c
@@ -247,7 +247,7 @@ int tracefs_instance_destroy(struct tracefs_instance *instance)
if (path)
ret = rmdir(path);
tracefs_put_tracing_file(path);
-
+ tracefs_instance_free(instance);
return ret;
}
--
2.29.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-04-12 20:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-12 20:53 [PATCH] libtracefs: Have tracefs_instance_destroy() match the man page Steven Rostedt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).