Fix: return -1 on bin_info_lookup_dwarf_function_name failure
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 27 Apr 2016 19:21:00 +0000 (15:21 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 27 Apr 2016 19:22:11 +0000 (15:22 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
lib/bin-info.c

index 7048b73894ce7e6092e9cabc33fba76624610579..14b0dea3de1caf822844e1d80e456104fe7f4390 100644 (file)
@@ -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);
This page took 0.026691 seconds and 4 git commands to generate.