From f08c4c08c7c2ce0fdfb4cf49642b00fbfb15185f Mon Sep 17 00:00:00 2001 From: Thomas Hindoe Paaboel Andersen Date: Thu, 4 Dec 2014 00:05:20 +0100 Subject: test-path-util: fix a leak --- src/test/test-path-util.c | 2 ++ 1 file changed, 2 insertions(+) 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) { -- cgit v1.2.3-54-g00ecf