Opened 12 years ago
Closed 12 years ago
#450 closed defect (invalid)
memory leak in src/os/win32/ngx_files.c.
| Reported by: | lichiyang | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | nginx-core | Version: | 1.2.x |
| Keywords: | memory leak win32 file | Cc: | |
| uname -a: | |||
| nginx -V: | 1.4 | ||
Description
There is a memory leak in src/os/win32/ngx_files.c.
The function
static ngx_int_t ngx_win32_check_filename(u_char *name, u_short *u, size_t len)
lead to memory leak where return NGX_OK.
Need add
free(lu);
before line 756.
Note:
See TracTickets
for help on using tickets.

This problem is already fixed by dea321e5c021 changeset.