perf tests: Call machine__exit in the vmlinux matches kallsyms test

Removing leaks with valgrind.

Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-x9hja7wxwexe8ca9v2j8qtlg@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 56ab7140
...@@ -44,7 +44,7 @@ int test__vmlinux_matches_kallsyms(void) ...@@ -44,7 +44,7 @@ int test__vmlinux_matches_kallsyms(void)
*/ */
if (machine__create_kernel_maps(&kallsyms) < 0) { if (machine__create_kernel_maps(&kallsyms) < 0) {
pr_debug("machine__create_kernel_maps "); pr_debug("machine__create_kernel_maps ");
return -1; goto out;
} }
/* /*
...@@ -227,5 +227,7 @@ int test__vmlinux_matches_kallsyms(void) ...@@ -227,5 +227,7 @@ int test__vmlinux_matches_kallsyms(void)
map__fprintf(pos, stderr); map__fprintf(pos, stderr);
} }
out: out:
machine__exit(&kallsyms);
machine__exit(&vmlinux);
return err; return err;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment