diff mbox series

[v2,03/22] libtracefs: Free "missed_followers" of instance

Message ID 20231228215433.54854-4-rostedt@goodmis.org (mailing list archive)
State Accepted
Commit 3cbac372eb71f79104e812e8a96d20e7250827fe
Headers show
Series libtracefs: Several updates | expand

Commit Message

Steven Rostedt Dec. 28, 2023, 9:51 p.m. UTC
From: "Steven Rostedt (Google)" <rostedt@goodmis.org>

The missed_followers array was allocated but not freed in the clean up of
the instance.

Fixes: 44501430 ("libtracefs: Add tracefs_follow_missed_events() API")
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
---
 src/tracefs-instance.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/src/tracefs-instance.c b/src/tracefs-instance.c
index be1478ee7a92..c385a078ecec 100644
--- a/src/tracefs-instance.c
+++ b/src/tracefs-instance.c
@@ -124,6 +124,7 @@  __hidden void trace_put_instance(struct tracefs_instance *instance)
 
 	free(instance->trace_dir);
 	free(instance->followers);
+	free(instance->missed_followers);
 	free(instance->name);
 	pthread_mutex_destroy(&instance->lock);
 	free(instance);