]> git.kaiwu.me - nginx.git/commitdiff
Style: use ngx_free() instead of free().
authorTatsuhiko Kubo <cubicdaiya@gmail.com>
Sat, 2 Aug 2014 18:27:39 +0000 (03:27 +0900)
committerTatsuhiko Kubo <cubicdaiya@gmail.com>
Sat, 2 Aug 2014 18:27:39 +0000 (03:27 +0900)
src/os/win32/ngx_files.c

index 881ffefb482af0a35a5932f3cfcf9011028e32af..9ef22a56c89035d84b821d2123370ca27404eeb3 100644 (file)
@@ -864,7 +864,7 @@ ngx_utf8_to_utf16(u_short *utf16, u_char *utf8, size_t *len)
         n = ngx_utf8_decode(&p, 4);
 
         if (n > 0x10ffff) {
-            free(utf16);
+            ngx_free(utf16);
             ngx_set_errno(NGX_EILSEQ);
             return NULL;
         }