crontab: properly free an entry

This should close memory leak.

Obtained from:	OpenBSD (rev. 1.62)
CID:		271773
This commit is contained in:
pfg 2015-12-22 15:30:26 +00:00
parent 43a39d413b
commit f801f23bcf

@ -558,7 +558,7 @@ replace_cmd() {
case FALSE:
e = load_entry(tmp, check_error, pw, envp);
if (e)
free(e);
free_entry(e);
break;
case TRUE:
break;