[ros-diffs] [dchapyshev] 39197: - Merge with r39196. Fix the handle leak in taskmgr

dchapyshev at svn.reactos.org dchapyshev at svn.reactos.org
Thu Jan 29 16:34:12 CET 2009


Author: dchapyshev
Date: Thu Jan 29 09:34:11 2009
New Revision: 39197

URL: http://svn.reactos.org/svn/reactos?rev=39197&view=rev
Log:
- Merge with r39196. Fix the handle leak in taskmgr

Modified:
    branches/ros-branch-0_3_8/reactos/dll/win32/lsasrv/lsarpc.c

Modified: branches/ros-branch-0_3_8/reactos/dll/win32/lsasrv/lsarpc.c
URL: http://svn.reactos.org/svn/reactos/branches/ros-branch-0_3_8/reactos/dll/win32/lsasrv/lsarpc.c?rev=39197&r1=39196&r2=39197&view=diff
==============================================================================
--- branches/ros-branch-0_3_8/reactos/dll/win32/lsasrv/lsarpc.c [iso-8859-1] (original)
+++ branches/ros-branch-0_3_8/reactos/dll/win32/lsasrv/lsarpc.c [iso-8859-1] Thu Jan 29 09:34:11 2009
@@ -189,7 +189,10 @@
 
     /* This is our fake handle, don't go too much long way */
     if (*ObjectHandle == (LSA_HANDLE)0xcafe)
+    {
+        *ObjectHandle = NULL;
         Status = STATUS_SUCCESS;
+    }
 
 
     TRACE("LsarClose done (Status: 0x%08lx)!\n", Status);



More information about the Ros-diffs mailing list