From 13b425222b8ba84f33797aa3dd3b77ccecaa3478 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Wed, 5 Feb 2014 11:48:48 -0500 Subject: [PATCH] Fix: memory leak in unit test Fixes coverity issue #1128896 Signed-off-by: David Goulet --- tests/unit/test_utils_expand_path.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/unit/test_utils_expand_path.c b/tests/unit/test_utils_expand_path.c index 65582ff80..1e0863fd8 100644 --- a/tests/unit/test_utils_expand_path.c +++ b/tests/unit/test_utils_expand_path.c @@ -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; } -- 2.34.1