mirror of
https://github.com/mirror/wget.git
synced 2025-03-09 17:20:33 +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);
|
return escnonprint_internal (str, '%', 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined DEBUG_MALLOC || defined TESTING
|
||||||
void
|
void
|
||||||
log_cleanup (void)
|
log_cleanup (void)
|
||||||
{
|
{
|
||||||
@ -911,6 +912,7 @@ log_cleanup (void)
|
|||||||
for (i = 0; i < countof (ring); i++)
|
for (i = 0; i < countof (ring); i++)
|
||||||
xfree (ring[i].buffer);
|
xfree (ring[i].buffer);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* When SIGHUP or SIGUSR1 are received, the output is redirected
|
/* When SIGHUP or SIGUSR1 are received, the output is redirected
|
||||||
elsewhere. Such redirection is only allowed once. */
|
elsewhere. Such redirection is only allowed once. */
|
||||||
|
Loading…
Reference in New Issue
Block a user