mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Fixed first-chance exception during request shutdown
This commit is contained in:
parent
b8360c376b
commit
bc410c3863
1 changed files with 8 additions and 3 deletions
|
@ -62,9 +62,14 @@
|
|||
void closelog(void)
|
||||
{
|
||||
TSRMLS_FETCH();
|
||||
DeregisterEventSource(PW32G(log_source));
|
||||
STR_FREE(PW32G(log_header));
|
||||
PW32G(log_header) = NULL;
|
||||
if (PW32G(log_source)) {
|
||||
DeregisterEventSource(PW32G(log_source));
|
||||
PW32G(log_source) = NULL;
|
||||
}
|
||||
if (PW32G(log_header)) {
|
||||
STR_FREE(PW32G(log_header));
|
||||
PW32G(log_header) = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
/* Emulator for BSD syslog() routine
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue