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
9e576e10
Commit
9e576e10
authored
May 06, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 06, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Fix some string leaks (Valgrind).
parent
8b50762b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
element.c
dlls/msxml3/element.c
+1
-0
domdoc.c
dlls/msxml3/tests/domdoc.c
+7
-0
No files found.
dlls/msxml3/element.c
View file @
9e576e10
...
...
@@ -1287,6 +1287,7 @@ static HRESULT WINAPI domelem_setAttribute(
{
int
cmp
=
xmlStrEqual
(
ns
->
href
,
xml_value
);
heap_free
(
xml_value
);
heap_free
(
xml_name
);
return
cmp
?
S_OK
:
E_INVALIDARG
;
}
}
...
...
dlls/msxml3/tests/domdoc.c
View file @
9e576e10
...
...
@@ -1940,6 +1940,7 @@ static void test_domnode( void )
ok
(
r
==
E_FAIL
,
"getAttribute ret %08x
\n
"
,
r
);
ok
(
V_VT
(
&
var
)
==
VT_NULL
||
V_VT
(
&
var
)
==
VT_EMPTY
,
"vt = %x
\n
"
,
V_VT
(
&
var
));
VariantClear
(
&
var
);
SysFreeString
(
str
);
str
=
SysAllocString
(
szdl
);
V_VT
(
&
var
)
=
VT_I4
;
...
...
@@ -8121,6 +8122,7 @@ static void test_put_nodeTypedValue(void)
EXPECT_HR
(
hr
,
S_OK
);
ok
(
!
lstrcmpW
(
str
,
_bstr_
(
"ABCD"
)),
"%s
\n
"
,
wine_dbgstr_w
(
str
));
IXMLDOMNode_Release
(
node
);
SysFreeString
(
str
);
array
=
SafeArrayCreateVector
(
VT_UI1
,
0
,
7
);
hr
=
SafeArrayAccessData
(
array
,
(
void
*
)
&
ptr
);
...
...
@@ -8160,6 +8162,7 @@ static void test_put_nodeTypedValue(void)
ok
(
!
lstrcmpW
(
str
,
_bstr_
(
"ZEdWemRBPQ=="
)),
"%s
\n
"
,
wine_dbgstr_w
(
str
));
IXMLDOMNode_Release
(
node
);
SafeArrayDestroyData
(
array
);
SysFreeString
(
str
);
/* bin.hex */
V_VT
(
&
value
)
=
VT_BSTR
;
...
...
@@ -8208,6 +8211,7 @@ static void test_put_nodeTypedValue(void)
ok
(
!
lstrcmpW
(
str
,
_bstr_
(
"000102030405060708090a0b0c0d0e0f"
)),
"%s
\n
"
,
wine_dbgstr_w
(
str
));
IXMLDOMNode_Release
(
node
);
SafeArrayDestroyData
(
array
);
SysFreeString
(
str
);
IXMLDOMElement_Release
(
elem
);
IXMLDOMDocument_Release
(
doc
);
...
...
@@ -9509,6 +9513,7 @@ static void test_selection(void)
EXPECT_HR
(
hr
,
S_OK
);
ok
(
!
lstrcmpW
(
name
,
_bstr_
(
"c"
)),
"got node name %s
\n
"
,
wine_dbgstr_w
(
name
));
IXMLDOMNode_Release
(
node
);
SysFreeString
(
name
);
V_VT
(
&
v
)
=
VT_I2
;
hr
=
IEnumVARIANT_Next
(
enum1
,
1
,
&
v
,
NULL
);
...
...
@@ -9530,6 +9535,7 @@ static void test_selection(void)
EXPECT_HR
(
hr
,
S_OK
);
ok
(
!
lstrcmpW
(
name
,
_bstr_
(
"d"
)),
"got node name %s
\n
"
,
wine_dbgstr_w
(
name
));
IXMLDOMNode_Release
(
node
);
SysFreeString
(
name
);
IXMLDOMSelection_Release
(
selection
);
IXMLDOMNodeList_Release
(
list
);
...
...
@@ -11784,6 +11790,7 @@ static void test_create_attribute(void)
ok
(
hr
==
S_FALSE
,
"%d: got 0x%08x
\n
"
,
i
,
hr
);
ok
(
str
==
NULL
,
"%d: got prefix %s
\n
"
,
i
,
wine_dbgstr_w
(
str
));
}
SysFreeString
(
str
);
str
=
NULL
;
hr
=
IXMLDOMNode_get_namespaceURI
(
node
,
&
str
);
...
...
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