From: "Steven Rostedt (Google)" <rostedt@xxxxxxxxxxx> Free entry val_stats array for each element when freeing a traceeval. Free the internal delta of a traceeval. Signed-off-by: Steven Rostedt (Google) <rostedt@xxxxxxxxxxx> --- src/histograms.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/histograms.c b/src/histograms.c index ea44814b7693..e16f0e9e903e 100644 --- a/src/histograms.c +++ b/src/histograms.c @@ -485,6 +485,7 @@ static void free_entry(struct traceeval *teval, struct entry *entry) clean_data_set(entry->keys, teval->key_types, teval->nr_key_types); clean_data_set(entry->vals, teval->val_types, teval->nr_val_types); + free(entry->val_stats); free(entry); } @@ -527,6 +528,7 @@ void traceeval_release(struct traceeval *teval) if (!teval) return; + __delta_release(teval->tdelta); hist_table_release(teval); type_release(teval->key_types, teval->nr_key_types); type_release(teval->val_types, teval->nr_val_types); -- 2.42.0