* src/log.c (log_cleanup): Only compile for DEBUG_MALLOC or TESTING

This commit is contained in:
Tim Rühsen 2020-02-27 19:56:05 +01:00
parent 30139c6745
commit 8215479ffb

View File

@ -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. */