mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
merge r3615:
do not free() stack allocated buffer
This commit is contained in:
parent
e52c9001f8
commit
5692070547
@ -568,7 +568,6 @@ ngx_utf8_to_utf16(u_short *utf16, u_char *utf8, size_t *len)
|
|||||||
n = ngx_utf8_decode(&p, 4);
|
n = ngx_utf8_decode(&p, 4);
|
||||||
|
|
||||||
if (n > 0xffff) {
|
if (n > 0xffff) {
|
||||||
free(utf16);
|
|
||||||
ngx_set_errno(NGX_EILSEQ);
|
ngx_set_errno(NGX_EILSEQ);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user