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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Steven Rostedt (Google)" <rostedt@xxxxxxxxxxx>

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@xxxxxxxxxxx>
---
 src/tracefs-instance.c | 1 +
 1 file changed, 1 insertion(+)

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);
-- 
2.42.0





[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux