mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08:00
do not free() stack allocated buffer
This commit is contained in:
parent
ea16b14cc5
commit
d50e53e675
@ -575,7 +575,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