87d178
From 7444c6ed3628484dfed2f204c5b78a06a50f4bd8 Mon Sep 17 00:00:00 2001
87d178
From: Yu Watanabe <watanabe.yu+github@gmail.com>
87d178
Date: Wed, 29 Aug 2018 23:27:42 +0900
87d178
Subject: [PATCH] test: fix a memleak
87d178
87d178
Follow-up for #9901.
87d178
87d178
Fixes #9968.
87d178
87d178
(cherry picked from commit efa146369398fdb73f1cd177eb2522822ebf559c)
87d178
87d178
Related: #1812972
87d178
---
87d178
 src/test/test-install-root.c | 1 +
87d178
 1 file changed, 1 insertion(+)
87d178
87d178
diff --git a/src/test/test-install-root.c b/src/test/test-install-root.c
87d178
index dbbcfe4297..fe1ca5b16f 100644
87d178
--- a/src/test/test-install-root.c
87d178
+++ b/src/test/test-install-root.c
87d178
@@ -1037,6 +1037,7 @@ static void test_preset_multiple_instances(const char *root) {
87d178
         assert_se(unit_file_get_state(UNIT_FILE_SYSTEM, root, "foo@bar1.service", &state) >= 0 && state == UNIT_FILE_ENABLED);
87d178
         assert_se(unit_file_get_state(UNIT_FILE_SYSTEM, root, "foo@bartest.service", &state) >= 0 && state == UNIT_FILE_ENABLED);
87d178
 
87d178
+        unit_file_changes_free(changes, n_changes);
87d178
 }
87d178
 
87d178
 int main(int argc, char *argv[]) {