summaryrefslogtreecommitdiff
path: root/src/test/test-condition-util.c
diff options
context:
space:
mode:
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);