summaryrefslogtreecommitdiff
path: root/main/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/main.c')
-rw-r--r--main/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/main.c b/main/main.c
index 821a1a7bfb..2f05b5f55f 100644
--- a/main/main.c
+++ b/main/main.c
@@ -629,7 +629,7 @@ PHPAPI void php_log_err(char *log_message TSRMLS_DC)
if (fd != -1) {
char *tmp;
int len;
- char *error_time_str;
+ zend_string *error_time_str;
time(&error_time);
#ifdef ZTS
@@ -647,7 +647,7 @@ PHPAPI void php_log_err(char *log_message TSRMLS_DC)
#endif
php_ignore_value(write(fd, tmp, len));
efree(tmp);
- efree(error_time_str);
+ STR_FREE(error_time_str);
close(fd);
PG(in_error_log) = 0;
return;