summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/yaz/php_yaz.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/yaz/php_yaz.c b/ext/yaz/php_yaz.c
index 621179f6aa..8a0630218e 100644
--- a/ext/yaz/php_yaz.c
+++ b/ext/yaz/php_yaz.c
@@ -1509,6 +1509,10 @@ PHP_MSHUTDOWN_FUNCTION(yaz)
#ifdef ZTS
tsrm_mutex_free (yaz_mutex);
#endif
+
+ if (yaz_log_file()) {
+ fclose(yaz_log_file());
+ }
return SUCCESS;
}