From b31b73f071b6fa805df7fd70c24ff19b6a2f5913 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 23 Aug 2001 21:42:31 +0000 Subject: [PATCH] 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. --- logging.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/logging.c b/logging.c index dc7f21592..537c0f8de 100644 --- a/logging.c +++ b/logging.c @@ -412,9 +412,9 @@ log_error(va_alist) if (def_str(I_LOGFILE)) do_logfile(logline); - free(logline); - if (message != logline) - free(message); + free(message); + if (logline != message) + free(logline); if (!(flags & NO_EXIT)) exit(1); -- 2.50.1