[PATCH] Style: use ngx_free() instead of free()

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


Hello!

On Sun, Aug 03, 2014 at 03:28:53AM +0900, Tatsuhiko Kubo wrote:

> # HG changeset patch
> # User Tatsuhiko Kubo <cubicdaiya at gmail.com>
> # Date 1407004059 -32400
> #      Sun Aug 03 03:27:39 2014 +0900
> # Node ID fbdab7f38fd639b763f78136535cbe6788bcadf0
> # Parent  f87afb46ccd26fccc7ed55ca8a7ef89c6256c3f2
> Style: use ngx_free() instead of free().
> 
> diff -r f87afb46ccd2 -r fbdab7f38fd6 src/os/win32/ngx_files.c
> --- a/src/os/win32/ngx_files.c	Fri Aug 01 20:04:14 2014 +0900
> +++ b/src/os/win32/ngx_files.c	Sun Aug 03 03:27:39 2014 +0900
> @@ -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;
>          }

Committed, thanks.

-- 
Maxim Dounin
http://nginx.org/



More information about the nginx-devel mailing list