diff options
author | Namhyung Kim <namhyung@gmail.com> | 2012-01-07 18:25:28 +0100 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-01-08 16:27:06 +0100 |
commit | 8442da1d9f445b454accdb148355ee990ebf3b32 (patch) | |
tree | 90731e4e9acfb8b4d8d352c0a5bc84a2bd9754bd /tools | |
parent | perf top: Add error message for EMFILE (diff) | |
download | linux-8442da1d9f445b454accdb148355ee990ebf3b32.tar.xz linux-8442da1d9f445b454accdb148355ee990ebf3b32.zip |
perf kmem: Add missing closedir() calls
The setup_cpunode_map() calls opendir() but misses corresponding
closedir(). 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-4-git-send-email-namhyung@gmail.com
Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/builtin-kmem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/builtin-kmem.c b/tools/perf/builtin-kmem.c index fe1ad8f21961..7a9b5c55ad5a 100644 --- a/tools/perf/builtin-kmem.c +++ b/tools/perf/builtin-kmem.c @@ -108,7 +108,9 @@ static void setup_cpunode_map(void) continue; cpunode_map[cpu] = mem; } + closedir(dir2); } + closedir(dir1); } static void insert_alloc_stat(unsigned long call_site, unsigned long ptr, |