From 8215479ffb71293a70257e1301f1818f961bc122 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20R=C3=BChsen?= Date: Thu, 27 Feb 2020 19:56:05 +0100 Subject: [PATCH] * src/log.c (log_cleanup): Only compile for DEBUG_MALLOC or TESTING --- src/log.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/log.c b/src/log.c index acc88399..00aed248 100644 --- a/src/log.c +++ b/src/log.c @@ -904,6 +904,7 @@ escnonprint_uri (const char *str) return escnonprint_internal (str, '%', 16); } +#if defined DEBUG_MALLOC || defined TESTING void log_cleanup (void) { @@ -911,6 +912,7 @@ log_cleanup (void) for (i = 0; i < countof (ring); i++) xfree (ring[i].buffer); } +#endif /* When SIGHUP or SIGUSR1 are received, the output is redirected elsewhere. Such redirection is only allowed once. */