crontab: properly free an entry
This should close memory leak. Obtained from: OpenBSD (rev. 1.62) CID: 271773
This commit is contained in:
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user