X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=tests%2Fplugins%2Fflt.lttng-utils.debug-info%2Ftest_bin_info.c;fp=tests%2Fplugins%2Fflt.lttng-utils.debug-info%2Ftest_bin_info.c;h=6d29322498fa308114e240c87c2f7c6657df0464;hp=38848f2163bbc80fb8bf79a017eadcaea8b83e85;hb=6b934a94886f0cf48325b9fa84172bde09429967;hpb=cdbf0f10d9e3fc086201f5e7a61fa09d6bb22c8b diff --git a/tests/plugins/flt.lttng-utils.debug-info/test_bin_info.c b/tests/plugins/flt.lttng-utils.debug-info/test_bin_info.c index 38848f21..6d293224 100644 --- a/tests/plugins/flt.lttng-utils.debug-info/test_bin_info.c +++ b/tests/plugins/flt.lttng-utils.debug-info/test_bin_info.c @@ -167,9 +167,7 @@ void subtest_lookup_function_name(struct bin_info *bin, uint64_t addr, ret = bin_info_lookup_function_name(bin, SO_INV_ADDR, &_func_name); ok(ret == -1 && _func_name == NULL, "bin_info_lookup_function_name - fail on invalid addr"); - if (_func_name) { - free(_func_name); - } + free(_func_name); } static