diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2014-12-04 00:05:20 +0100 |
---|---|---|
committer | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2014-12-04 00:13:10 +0100 |
commit | f08c4c08c7c2ce0fdfb4cf49642b00fbfb15185f (patch) | |
tree | 3c9ab7aefe48cb6a087ea109cdb6fbd1080b0b4b | |
parent | 3b0ed75c353946ba580a7724f9dbeb761e2067fe (diff) |
test-path-util: fix a leak
-rw-r--r-- | src/test/test-path-util.c | 2 |
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) { |