mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 14:25:15 +00:00
In log_error() free message, not logline unconditionally, then
free logline if it is not the same as message. No function change but this mirrors how they are allocated.
This commit is contained in:
@@ -412,9 +412,9 @@ log_error(va_alist)
|
|||||||
if (def_str(I_LOGFILE))
|
if (def_str(I_LOGFILE))
|
||||||
do_logfile(logline);
|
do_logfile(logline);
|
||||||
|
|
||||||
free(logline);
|
free(message);
|
||||||
if (message != logline)
|
if (logline != message)
|
||||||
free(message);
|
free(logline);
|
||||||
|
|
||||||
if (!(flags & NO_EXIT))
|
if (!(flags & NO_EXIT))
|
||||||
exit(1);
|
exit(1);
|
||||||
|
Reference in New Issue
Block a user