perf metricgroup: Add missing list_del_init() when flushing egroups list
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: acc7bfb3db9744c4a18c96fd6536069e8647cb11 Gitweb: https://git.kernel.org/tip/acc7bfb3db9744c4a18c96fd6536069e8647cb11 Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Thu, 4 Jul 2019 12:20:21 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Tue, 9 Jul 2019 10:13:27 -0300
perf metricgroup: Add missing list_del_init() when flushing egroups list
So that at the end each of the entries have its list node struct cleared and the egroup list head ends emptied.
Cc Adrian Hunter <[email protected]>
Cc Andi Kleen <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/util/metricgroup.c | 1 + 1 file changed, 1 insertion(+)
tools/perf/util/metricgroup.c +1 -0
@@ -492,6 +492,7 @@ static void metricgroup__free_egroups(struct list_head *group_list)for (i =0 ; i < eg->idnum; i++)zfree (&eg->ids[i]);zfree (&eg->ids); +list_del_init (&eg->nd);free (eg); } }