chiark / gitweb /
systemctl: fix invalid free when enabling sysv services fails
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 9 Dec 2014 19:41:24 +0000 (14:41 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 10 Dec 2014 02:47:53 +0000 (21:47 -0500)
commita644abed54bd4a42ebe2c99af5cc621ffbaf6c55
tree9770099429144daa24cde7f33dbf788be2ec67d7
parent4dfb18922d5d1efb13ee459cbf23832277f85ed7
systemctl: fix invalid free when enabling sysv services fails

The error was introduced in v215-343-g60731f32f1 'systemctl: do not
bother to mutate state on error', by causing strv_free to attempt to
free a static string. Simplify the whole thing by always keeping the
array in valid state.
src/systemctl/systemctl.c