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
5825ad56
Commit
5825ad56
authored
Dec 17, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 17, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Fix uri object leak on error path (Valgrind).
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
36588028
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
domdoc.c
dlls/msxml3/domdoc.c
+8
-4
No files found.
dlls/msxml3/domdoc.c
View file @
5825ad56
...
...
@@ -2292,8 +2292,8 @@ static HRESULT WINAPI domdoc_load(
if
(
filename
)
{
IUri
*
uri
=
NULL
;
IMoniker
*
mon
;
IUri
*
uri
;
if
(
This
->
properties
->
uri
)
{
...
...
@@ -2310,15 +2310,19 @@ static HRESULT WINAPI domdoc_load(
IMoniker_Release
(
mon
);
}
if
(
FAILED
(
hr
)
)
This
->
error
=
E_FAIL
;
else
if
(
SUCCEEDED
(
hr
))
{
get_doc
(
This
)
->
name
=
(
char
*
)
xmlchar_from_wcharn
(
filename
,
-
1
,
TRUE
);
This
->
properties
->
uri
=
uri
;
hr
=
This
->
error
=
S_OK
;
*
isSuccessful
=
VARIANT_TRUE
;
}
else
{
if
(
uri
)
IUri_Release
(
uri
);
This
->
error
=
E_FAIL
;
}
}
if
(
!
filename
||
FAILED
(
hr
))
{
...
...
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