crontab: properly free an entry
This should close memory leak. Obtained from: OpenBSD (rev. 1.62) CID: 271773
This commit is contained in:
parent
c28c984689
commit
7044922b39
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=292606
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user