Update services/cron/cron.c

Resource leak fixed.