Don't free memory that was never allocated. This fixes a core dump in
the case where both the config file and the default MTA don't exist. PR: 29521 Submitted by: marius@alchemy.franken.de
This commit is contained in:
parent
8ee5eca8d1
commit
8c37834db2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=81344
@ -130,7 +130,6 @@ main(argc, argv, envp)
|
|||||||
closelog();
|
closelog();
|
||||||
execve(_PATH_DEFAULTMTA, al.argv, envp);
|
execve(_PATH_DEFAULTMTA, al.argv, envp);
|
||||||
freearg(&al, 0);
|
freearg(&al, 0);
|
||||||
free(line);
|
|
||||||
err(1, "execing %s", _PATH_DEFAULTMTA);
|
err(1, "execing %s", _PATH_DEFAULTMTA);
|
||||||
/*NOTREACHED*/
|
/*NOTREACHED*/
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user