]> granicus.if.org Git - php/commitdiff
fix invalid use of STR_FREE > efree
authorPierre Joye <pierre.php@gmail.com>
Thu, 15 May 2014 08:01:11 +0000 (10:01 +0200)
committerPierre Joye <pierre.php@gmail.com>
Thu, 15 May 2014 08:01:11 +0000 (10:01 +0200)
win32/wsyslog.c

index 4266079e1349643e0d419d8543272018a19e0012..75c5ef58e56f5938c1d16c1c38b01853e52403f8 100644 (file)
@@ -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());