diff options
Diffstat (limited to 'tools/perf/util/probe-finder.c')
-rw-r--r-- | tools/perf/util/probe-finder.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/probe-finder.c b/tools/perf/util/probe-finder.c index 3bcd140b4545..5473f11a9bc8 100644 --- a/tools/perf/util/probe-finder.c +++ b/tools/perf/util/probe-finder.c | |||
@@ -1455,6 +1455,7 @@ static int find_probes(int fd, struct probe_finder *pf) | |||
1455 | if (!dbg) { | 1455 | if (!dbg) { |
1456 | pr_warning("No debug information found in the vmlinux - " | 1456 | pr_warning("No debug information found in the vmlinux - " |
1457 | "please rebuild with CONFIG_DEBUG_INFO=y.\n"); | 1457 | "please rebuild with CONFIG_DEBUG_INFO=y.\n"); |
1458 | close(fd); /* Without dwfl_end(), fd isn't closed. */ | ||
1458 | return -EBADF; | 1459 | return -EBADF; |
1459 | } | 1460 | } |
1460 | 1461 | ||
@@ -1900,6 +1901,7 @@ int find_line_range(int fd, struct line_range *lr) | |||
1900 | if (!dbg) { | 1901 | if (!dbg) { |
1901 | pr_warning("No debug information found in the vmlinux - " | 1902 | pr_warning("No debug information found in the vmlinux - " |
1902 | "please rebuild with CONFIG_DEBUG_INFO=y.\n"); | 1903 | "please rebuild with CONFIG_DEBUG_INFO=y.\n"); |
1904 | close(fd); /* Without dwfl_end(), fd isn't closed. */ | ||
1903 | return -EBADF; | 1905 | return -EBADF; |
1904 | } | 1906 | } |
1905 | 1907 | ||