Robert Shearman : rpcrt4: Don't release the auth info if it isn't present.

Alexandre Julliard julliard at wine.codeweavers.com
Sat May 20 07:26:38 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: c1a31cef3d9a611f0d8d42f4261acaa5b47e3c01
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=c1a31cef3d9a611f0d8d42f4261acaa5b47e3c01

Author: Robert Shearman <rob at codeweavers.com>
Date:   Thu May 18 17:27:26 2006 +0100

rpcrt4: Don't release the auth info if it isn't present.

---

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

diff --git a/dlls/rpcrt4/rpc_transport.c b/dlls/rpcrt4/rpc_transport.c
index 9758b6c..7e6ea97 100644
--- a/dlls/rpcrt4/rpc_transport.c
+++ b/dlls/rpcrt4/rpc_transport.c
@@ -484,7 +484,7 @@ RPC_STATUS RPCRT4_DestroyConnection(RpcC
   RPCRT4_CloseConnection(Connection);
   RPCRT4_strfree(Connection->Endpoint);
   RPCRT4_strfree(Connection->NetworkAddr);
-  RpcAuthInfo_Release(Connection->AuthInfo);
+  if (Connection->AuthInfo) RpcAuthInfo_Release(Connection->AuthInfo);
   HeapFree(GetProcessHeap(), 0, Connection);
   return RPC_S_OK;
 }




More information about the wine-cvs mailing list