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

This commit is contained in:
Rob Shearman 2007-12-05 22:40:47 +00:00 committed by Alexandre Julliard
parent 5fb5fccac0
commit 867cc3c05f
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}