Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
bd9701ad
Commit
bd9701ad
authored
Nov 22, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 23, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dplayx: Fix a possible memory leak on error path (Coverity).
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3acac5b2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
dplay.c
dlls/dplayx/dplay.c
+3
-8
No files found.
dlls/dplayx/dplay.c
View file @
bd9701ad
...
...
@@ -1593,17 +1593,12 @@ static HRESULT DP_IF_CreatePlayer( IDirectPlayImpl *This, void *lpMsgHdr, DPID *
player total */
lpPData
=
DP_CreatePlayer
(
This
,
lpidPlayer
,
lpPlayerName
,
dwCreateFlags
,
hEvent
,
bAnsi
);
if
(
lpPData
==
NULL
)
{
return
DPERR_CANTADDPLAYER
;
}
/* Create the list object and link it in */
lpPList
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
lpPList
)
);
if
(
lpPList
==
NULL
)
if
(
!
lpPData
||
!
lpPList
)
{
FIXME
(
"Memory leak
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
lpPData
);
HeapFree
(
GetProcessHeap
(),
0
,
lpPList
);
return
DPERR_CANTADDPLAYER
;
}
...
...
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