summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/test/test-path-util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test-path-util.c b/src/test/test-path-util.c
index 4ebbfa9a76..58b456a291 100644
--- a/src/test/test-path-util.c
+++ b/src/test/test-path-util.c
@@ -109,6 +109,8 @@ static void test_find_binary(const char *self, bool local) {
assert_se(find_binary("/some/dir/xxxx-xxxx", local, &p) ==
(local ? -ENOENT : 0));
+ if (!local)
+ free(p);
}
static void test_prefixes(void) {