From 639e300a93a1f73ffb8f0ae987b4960700875c44 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 29 Sep 2013 22:16:59 +0200 Subject: [PATCH] gluon-crond: fix matches == 6 case --- package/gluon-cron/src/gluon-crond.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/gluon-cron/src/gluon-crond.c b/package/gluon-cron/src/gluon-crond.c index 52ca2afd..9ca9d891 100644 --- a/package/gluon-cron/src/gluon-crond.c +++ b/package/gluon-cron/src/gluon-crond.c @@ -193,7 +193,7 @@ static int handle_line(const char *line) { ret = 0; end: - for (i = 0; i < matches; i++) + for (i = 0; i < matches && i < 5; i++) free(columns[i]); return ret;