[ros-bugs] [Bug 3999] Eating handles

ReactOS.Bugzilla at www.reactos.org ReactOS.Bugzilla at www.reactos.org
Thu Jan 8 16:50:38 CET 2009


http://www.reactos.org/bugzilla/show_bug.cgi?id=3999


hto <hto at dev.null> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1




--- Comment #2 from hto <hto at dev.null>  2009-01-08 16:50:37 CET ---
That's RPC leaks resources.

Taskmgr uses LookupAccountSidW(). It calls LsaOpenPolicy() and LsaClose().

lsarpc_LsarOpenPolicy() calls NdrContextHandleInitialize(), it creates a
handle, ref. count is 1.

Then:

lsarpc_LsarClose() // lsa_s.c
 NdrServerContextNewUnmarshall()
  NDRSContextUnmarshall2()
   RpcServerAssoc_FindContextHandle()
    // increments ref. count, it is now 2
 NdrServerContextNewMarshall()
  NDRSContextMarshall2()
   RpcServerAssoc_ReleaseContextHandle()
    // decrements ref. count, it is still 1.


-- 
Configure bugmail: http://www.reactos.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the Ros-bugs mailing list