test: fix a memleak

Follow-up for #9901.

Fixes #9968.
This commit is contained in:
Yu Watanabe 2018-08-29 23:27:42 +09:00 committed by Zbigniew Jędrzejewski-Szmek
parent a9fc640671
commit efa1463693
1 changed files with 1 additions and 0 deletions

View File

@ -1037,6 +1037,7 @@ static void test_preset_multiple_instances(const char *root) {
assert_se(unit_file_get_state(UNIT_FILE_SYSTEM, root, "foo@bar1.service", &state) >= 0 && state == UNIT_FILE_ENABLED);
assert_se(unit_file_get_state(UNIT_FILE_SYSTEM, root, "foo@bartest.service", &state) >= 0 && state == UNIT_FILE_ENABLED);
unit_file_changes_free(changes, n_changes);
}
int main(int argc, char *argv[]) {