test-path-util: fix a leak

This commit is contained in:
Thomas Hindoe Paaboel Andersen 2014-12-04 00:05:20 +01:00
parent 3b0ed75c35
commit f08c4c08c7

View file

@ -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) {