]> granicus.if.org Git - php/commitdiff
fix warning
authorAnatol Belski <ab@php.net>
Sun, 9 Jul 2017 14:05:36 +0000 (16:05 +0200)
committerAnatol Belski <ab@php.net>
Sun, 9 Jul 2017 14:05:36 +0000 (16:05 +0200)
win32/ioutil.h

index 9e0c1ce15ca677a93a4bb9edc47b15b016782eb8..8298912a0e0eebef83e72a765b56752e2aca5773 100644 (file)
@@ -137,7 +137,7 @@ typedef enum {
 #define PHP_WIN32_IOUTIL_CHECK_PATH_W(pathw, ret, dealloc) do { \
                if (!PHP_WIN32_IOUTIL_PATH_IS_OK_W(pathw, wcslen(pathw))) { \
                        if (dealloc) { \
-                               free(pathw); \
+                               free((void *)pathw); \
                        } \
                        SET_ERRNO_FROM_WIN32_CODE(ERROR_ACCESS_DENIED); \
                        return ret; \