summaryrefslogtreecommitdiff
path: root/src/test/test-path-util.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-07-12 08:04:39 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-07-12 13:24:06 -0400
commitb463b81399f0bc0d54107ef819cc0f843473c7d7 (patch)
tree107c813e54c90026e639869c36ecb75ecb811eae /src/test/test-path-util.c
parente8193554925a22b63bef0e77b8397b56d63a91ff (diff)
test-path-util,test-sched-prio: uninitialize manager to appease valgrind
Diffstat (limited to 'src/test/test-path-util.c')
-rw-r--r--src/test/test-path-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-path-util.c b/src/test/test-path-util.c
index 127e17803f..f396b32ffe 100644
--- a/src/test/test-path-util.c
+++ b/src/test/test-path-util.c
@@ -56,7 +56,7 @@ static void test_path(void) {
assert_se(streq(path_get_file_name("file.../"), ""));
#define test_parent(x, y) { \
- char *z; \
+ char _cleanup_free_ *z = NULL; \
int r = path_get_parent(x, &z); \
printf("expected: %s\n", y ? y : "error"); \
printf("actual: %s\n", r<0 ? "error" : z); \