mirror of
https://github.com/nginx/nginx.git
synced 2026-08-04 14:58:20 +00:00
do not free() stack allocated buffer
This commit is contained in:
parent
ea16b14cc5
commit
d50e53e675
1 changed files with 0 additions and 1 deletions
|
|
@ -575,7 +575,6 @@ ngx_utf8_to_utf16(u_short *utf16, u_char *utf8, size_t *len)
|
|||
n = ngx_utf8_decode(&p, 4);
|
||||
|
||||
if (n > 0xffff) {
|
||||
free(utf16);
|
||||
ngx_set_errno(NGX_EILSEQ);
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue