[nginx] Style: use ngx_free() instead of free().

Maxim Dounin mdounin at mdounin.ru
Sun Aug 3 22:55:23 UTC 2014


details:   http://hg.nginx.org/nginx/rev/fbdab7f38fd6
branches:  
changeset: 5785:fbdab7f38fd6
user:      Tatsuhiko Kubo <cubicdaiya at gmail.com>
date:      Sun Aug 03 03:27:39 2014 +0900
description:
Style: use ngx_free() instead of free().

diffstat:

 src/os/win32/ngx_files.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git a/src/os/win32/ngx_files.c b/src/os/win32/ngx_files.c
--- a/src/os/win32/ngx_files.c
+++ b/src/os/win32/ngx_files.c
@@ -864,7 +864,7 @@ ngx_utf8_to_utf16(u_short *utf16, u_char
         n = ngx_utf8_decode(&p, 4);
 
         if (n > 0x10ffff) {
-            free(utf16);
+            ngx_free(utf16);
             ngx_set_errno(NGX_EILSEQ);
             return NULL;
         }



More information about the nginx-devel mailing list