chiark / gitweb /
systemctl: fix resource leak CID #1237747
authorCristian Rodríguez <crrodriguez@opensuse.org>
Thu, 18 Sep 2014 00:56:25 +0000 (21:56 -0300)
committerDaniel Mack <daniel@zonque.org>
Thu, 18 Sep 2014 08:16:23 +0000 (10:16 +0200)
commit48a2900c6612052149a1d0dd88aeacb99b49ce4d
tree99cba490ca40d71eaecda715f4a994792f259f80
parent4edf33d1e3fb551b1b0cee8e4a2a380c71b00dc7
systemctl: fix resource leak CID #1237747

..by simply moving the declaration of "unit" into the STRV_FOREACH
loop as suggested by Andreas.
src/systemctl/systemctl.c