perf script: Add missing closedir() calls
authorNamhyung Kim <namhyung@gmail.com>
Sat, 7 Jan 2012 17:25:25 +0000 (02:25 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sun, 8 Jan 2012 14:35:41 +0000 (12:35 -0200)
commit946ef2a24523e59e5cf931068ab7e9443c63c9df
treeb354438bcbaf9c41a8df4a5b30b819ec6c5f7698
parentb9f616bbf4a917398aa09db89efbdf9a204e80dc
perf script: Add missing closedir() calls

The get_script_path() calls opendir() but misses corresponding
closedir()'s. Add them.

Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1325957132-10600-1-git-send-email-namhyung@gmail.com
Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-script.c