Rob Shearman : rpcrt4: Fix a memory leak when freeing an association by deleting the critical section .

Alexandre Julliard julliard at winehq.org
Thu Dec 6 08:26:47 CST 2007


Module: wine
Branch: master
Commit: 867cc3c05f110a2bb4c4112762397c8ffce82ee1
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=867cc3c05f110a2bb4c4112762397c8ffce82ee1

Author: Rob Shearman <rob at codeweavers.com>
Date:   Wed Dec  5 22:40:47 2007 +0000

rpcrt4: Fix a memory leak when freeing an association by deleting the critical section.

---

 dlls/rpcrt4/rpc_transport.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/rpcrt4/rpc_transport.c b/dlls/rpcrt4/rpc_transport.c
index fcd3d0c..0c893e8 100644
--- a/dlls/rpcrt4/rpc_transport.c
+++ b/dlls/rpcrt4/rpc_transport.c
@@ -1541,6 +1541,8 @@ ULONG RpcAssoc_Release(RpcAssoc *assoc)
     HeapFree(GetProcessHeap(), 0, assoc->NetworkAddr);
     HeapFree(GetProcessHeap(), 0, assoc->Protseq);
 
+    DeleteCriticalSection(&assoc->cs);
+
     HeapFree(GetProcessHeap(), 0, assoc);
   }
 




More information about the wine-cvs mailing list