diff mbox series

[03/23] libtracefs: Free "missed_followers" of instance

Message ID 20231228203714.53294-4-rostedt@goodmis.org (mailing list archive)
State Superseded
Headers show
Series libtracefs: Several updates | expand

Commit Message

Steven Rostedt Dec. 28, 2023, 8:35 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);