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:
parent
3b0ed75c35
commit
f08c4c08c7
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user