X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Funit%2Ftest_utils_expand_path.c;h=fe709acf554b81c9b32a13b41165b34cd97721e2;hp=65582ff805cee08ab8c1dedeb1bba48df966f54a;hb=ad7c9c188f0e6336577ccdc7e6e0aea409a88a9d;hpb=9a5063437cf46024b44827508663fa2b24e97814 diff --git a/tests/unit/test_utils_expand_path.c b/tests/unit/test_utils_expand_path.c index 65582ff80..fe709acf5 100644 --- a/tests/unit/test_utils_expand_path.c +++ b/tests/unit/test_utils_expand_path.c @@ -28,7 +28,7 @@ #include -/* For lttngerr.h */ +/* For error.h */ int lttng_opt_quiet = 1; int lttng_opt_verbose = 3; @@ -141,6 +141,7 @@ int prepare_valid_results() valid_tests_expected_results[i] = malloc(PATH_MAX); if (valid_tests_expected_results[i] == NULL) { printerr("malloc expected results"); + free(empty); return 1; }