From: Jérémie Galarneau Date: Wed, 27 Apr 2016 19:21:00 +0000 (-0400) Subject: Fix: return -1 on bin_info_lookup_dwarf_function_name failure X-Git-Url: http://git.efficios.com/?p=deliverable%2Fbabeltrace.git;a=commitdiff_plain;h=fcd94e371dff29222e2de06a12b9e576845a963e Fix: return -1 on bin_info_lookup_dwarf_function_name failure Signed-off-by: Jérémie Galarneau --- diff --git a/lib/bin-info.c b/lib/bin-info.c index 7048b7389..14b0dea3d 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);