chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: fix some memory leaks in tests
[elogind.git]
/
src
/
test
/
test-util.c
diff --git
a/src/test/test-util.c
b/src/test/test-util.c
index c5762ede4b83346cb2a41c9dabeccbf81eaa0a3a..7fd0572bcb1feb59e539c7d809cd9fe9ea6da30c 100644
(file)
--- a/
src/test/test-util.c
+++ b/
src/test/test-util.c
@@
-587,7
+587,7
@@
static void test_get_files_in_directory(void) {
_cleanup_strv_free_ char **l = NULL, **t = NULL;
assert_se(get_files_in_directory("/tmp", &l) >= 0);
_cleanup_strv_free_ char **l = NULL, **t = NULL;
assert_se(get_files_in_directory("/tmp", &l) >= 0);
- assert_se(get_files_in_directory(".", &
l
) >= 0);
+ assert_se(get_files_in_directory(".", &
t
) >= 0);
assert_se(get_files_in_directory(".", NULL) >= 0);
}
assert_se(get_files_in_directory(".", NULL) >= 0);
}