Skip to content

Commit 0bd3f08

Browse files
Jiri Olsaacmel
authored andcommitted
perf tools: Add missing closedir in multi tracepoint processing
We don't close 'events' directory when reading multiple tracepoint events. Adding missing closedir. Signed-off-by: Jiri Olsa <jolsa@redhat.com> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1355749718-4355-2-git-send-email-jolsa@redhat.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 0c6332e commit 0bd3f08

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎tools/perf/util/parse-events.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ static int add_tracepoint_multi(struct list_head **list, int *idx,
408408
ret = add_tracepoint(list, idx, sys_name, evt_ent->d_name);
409409
}
410410

411+
closedir(evt_dir);
411412
return ret;
412413
}
413414

0 commit comments

Comments
 (0)