1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-02 10:51:20 +03:00

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