aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Freed <dwfreed@mtu.edu>2016-09-30 17:29:56 -0400
committerDoug Freed <dwfreed@mtu.edu>2016-09-30 17:29:56 -0400
commit6710316a18c33601e780282e72c60f09b5175280 (patch)
treef99422360d99963fab88e00cdeb443d9d6407a8e
parent61882821e0d6110a2ca2f67fad7c362983a85cf0 (diff)
openrc-run: fix double free
-rw-r--r--src/rc/openrc-run.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rc/openrc-run.c b/src/rc/openrc-run.c
index e3b4fbb0..bb79f42f 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");