diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-08-29 16:27:42 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-08-29 17:45:37 +0200 |
commit | efa146369398fdb73f1cd177eb2522822ebf559c (patch) | |
tree | 1837ee10155bb3dbe780dc2f416532862c207f19 /src | |
parent | cryptsetup: add support for sector-size= option (#9936) (diff) | |
download | systemd-efa146369398fdb73f1cd177eb2522822ebf559c.tar.xz systemd-efa146369398fdb73f1cd177eb2522822ebf559c.zip |
test: fix a memleak
Follow-up for #9901.
Fixes #9968.
Diffstat (limited to 'src')
-rw-r--r-- | src/test/test-install-root.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test-install-root.c b/src/test/test-install-root.c index dbbcfe4297..fe1ca5b16f 100644 --- a/src/test/test-install-root.c +++ b/src/test/test-install-root.c @@ -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[]) { |