[nginx] Win32: plugged memory leak.

Maxim Dounin mdounin at mdounin.ru
Mon Feb 10 13:36:39 UTC 2014


details:   http://hg.nginx.org/nginx/rev/fd77e2018652
branches:  stable-1.4
changeset: 5560:fd77e2018652
user:      Maxim Dounin <mdounin at mdounin.ru>
date:      Thu Oct 31 18:23:49 2013 +0400
description:
Win32: plugged memory leak.

diffstat:

 src/os/win32/ngx_files.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff --git a/src/os/win32/ngx_files.c b/src/os/win32/ngx_files.c
--- a/src/os/win32/ngx_files.c
+++ b/src/os/win32/ngx_files.c
@@ -753,6 +753,8 @@ ngx_win32_check_filename(u_char *name, u
         goto invalid;
     }
 
+    ngx_free(lu);
+
     return NGX_OK;
 
 invalid:



More information about the nginx-devel mailing list