summaryrefslogtreecommitdiff
path: root/win32/wsyslog.c
diff options
context:
space:
mode:
authorPierre Joye <pierre.php@gmail.com>2014-05-15 10:01:11 +0200
committerPierre Joye <pierre.php@gmail.com>2014-05-15 10:01:11 +0200
commit15a887ca1422f1c75c5c1ef5a52deee8613957b3 (patch)
tree41f1c2dbb77de7888cc02e38eb052950c3e73cb5 /win32/wsyslog.c
parentd8c67496499e5955707ddd99212cf4273bfa2ff7 (diff)
downloadphp-git-15a887ca1422f1c75c5c1ef5a52deee8613957b3.tar.gz
fix invalid use of STR_FREE > efree
Diffstat (limited to 'win32/wsyslog.c')
-rw-r--r--win32/wsyslog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/wsyslog.c b/win32/wsyslog.c
index 4266079e13..75c5ef58e5 100644
--- a/win32/wsyslog.c
+++ b/win32/wsyslog.c
@@ -67,7 +67,7 @@ void closelog(void)
PW32G(log_source) = NULL;
}
if (PW32G(log_header)) {
- STR_FREE(PW32G(log_header));
+ efree(PW32G(log_header));
PW32G(log_header) = NULL;
}
}
@@ -129,7 +129,7 @@ void openlog(const char *ident, int logopt, int facility)
closelog();
}
- STR_FREE(PW32G(log_header));
+ efree(PW32G(log_header));
PW32G(log_source) = RegisterEventSource(NULL, "PHP-" PHP_VERSION);
spprintf(&PW32G(log_header), 0, (logopt & LOG_PID) ? "%s[%d]" : "%s", ident, getpid());