chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Check return value from reading name_assign_type attr
[elogind.git]
/
src
/
test
/
test-path-util.c
diff --git
a/src/test/test-path-util.c
b/src/test/test-path-util.c
index 4ebbfa9a768b3cc9400ebdd02af8d693cb7ab91e..58b456a29183da7116d40475cf9a0f00b80912b1 100644
(file)
--- 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) {