Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
ca6fe3fb
Commit
ca6fe3fb
authored
Feb 21, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Feb 21, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Fix a memory leak in I_RpcSendReceive caused by I_RpcReceive overwriting pMsg->Buffer.
(Reported by Huw Davies.)
parent
b491d926
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
rpc_message.c
dlls/rpcrt4/rpc_message.c
+6
-0
No files found.
dlls/rpcrt4/rpc_message.c
View file @
ca6fe3fb
...
...
@@ -1030,10 +1030,16 @@ fail:
RPC_STATUS
WINAPI
I_RpcSendReceive
(
PRPC_MESSAGE
pMsg
)
{
RPC_STATUS
status
;
RPC_MESSAGE
original_message
;
TRACE
(
"(%p)
\n
"
,
pMsg
);
original_message
=
*
pMsg
;
status
=
I_RpcSend
(
pMsg
);
if
(
status
==
RPC_S_OK
)
status
=
I_RpcReceive
(
pMsg
);
/* free the buffer replaced by a new buffer in I_RpcReceive */
if
(
status
==
RPC_S_OK
)
I_RpcFreeBuffer
(
&
original_message
);
return
status
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment