summaryrefslogtreecommitdiff
path: root/src/test/test-condition-util.c
diff options
context:
space:
mode:
authorRonny Chevalier <chevalier.ronny@gmail.com>2014-09-18 12:09:10 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-09-18 12:09:10 +0200
commit76082570b8115c3410bac42bb5842ba201dddb76 (patch)
tree160630566b609aeb126986d77330976ba9182078 /src/test/test-condition-util.c
parent913b6d70cbfd6151babc77ffc5e8c67b953ddba9 (diff)
tests: fix resource & mem leaks
Diffstat (limited to 'src/test/test-condition-util.c')
-rw-r--r--src/test/test-condition-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-condition-util.c b/src/test/test-condition-util.c
index 4ee5600ff6..35ee9167bf 100644
--- a/src/test/test-condition-util.c
+++ b/src/test/test-condition-util.c
@@ -45,7 +45,7 @@ static void test_condition_test_host(void) {
sd_id128_t id;
int r;
char sid[SD_ID128_STRING_MAX];
- char *hostname;
+ _cleanup_free_ char *hostname = NULL;
r = sd_id128_get_machine(&id);
assert_se(r >= 0);