commit:     6710316a18c33601e780282e72c60f09b5175280
Author:     Doug Freed <dwfreed <AT> mtu <DOT> edu>
AuthorDate: Fri Sep 30 21:29:56 2016 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Fri Sep 30 21:29:56 2016 +0000
URL:        https://gitweb.gentoo.org/proj/openrc.git/commit/?id=6710316a

openrc-run: fix double free

 src/rc/openrc-run.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/rc/openrc-run.c b/src/rc/openrc-run.c
index e3b4fbb..bb79f42 100644
--- a/src/rc/openrc-run.c
+++ b/src/rc/openrc-run.c
@@ -1344,6 +1344,7 @@ int main(int argc, char **argv)
                            applet_list,
                            runlevel, depoptions);
                        rc_stringlist_free(tmplist);
+                       tmplist = NULL;
                        TAILQ_FOREACH(svc, services, entries)
                            printf("%s ", svc->value);
                        printf ("\n");

Reply via email to