mirror of
https://github.com/mirror/wget.git
synced 2025-03-09 01:00:16 +08:00
* src/log.c (log_cleanup): Only compile for DEBUG_MALLOC or TESTING
This commit is contained in:
parent
30139c6745
commit
8215479ffb
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user