From fcd94e371dff29222e2de06a12b9e576845a963e Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Wed, 27 Apr 2016 15:21:00 -0400 Subject: [PATCH] Fix: return -1 on bin_info_lookup_dwarf_function_name failure MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- lib/bin-info.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/bin-info.c b/lib/bin-info.c index 7048b738..14b0dea3 100644 --- a/lib/bin-info.c +++ b/lib/bin-info.c @@ -885,6 +885,8 @@ int bin_info_lookup_dwarf_function_name(struct bin_info *bin, uint64_t addr, if (_func_name) { *func_name = _func_name; + } else { + goto error; } bt_dwarf_cu_destroy(cu); -- 2.34.1