]> git.kaiwu.me - nginx.git/commitdiff
do not free() stack allocated buffer
authorIgor Sysoev <igor@sysoev.ru>
Mon, 14 Jun 2010 18:09:52 +0000 (18:09 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 14 Jun 2010 18:09:52 +0000 (18:09 +0000)
src/os/win32/ngx_files.c

index a6350ce97041c566fe4c8553c14b3d45dd57abb1..415458bf08ba05800b4bc465fcef4c0854aee47d 100644 (file)
@@ -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;
         }