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
ae2017a9
Commit
ae2017a9
authored
Oct 11, 2008
by
Michael Karcher
Committed by
Alexandre Julliard
Oct 13, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Fix leaks in callers of xmlChar_from_wchar.
parent
0803167f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
5 deletions
+15
-5
cdata.c
dlls/msxml3/cdata.c
+2
-0
comment.c
dlls/msxml3/comment.c
+2
-0
node.c
dlls/msxml3/node.c
+9
-5
text.c
dlls/msxml3/text.c
+2
-0
No files found.
dlls/msxml3/cdata.c
View file @
ae2017a9
...
...
@@ -606,6 +606,7 @@ static HRESULT WINAPI domcdata_appendData(
}
else
hr
=
E_FAIL
;
HeapFree
(
GetProcessHeap
(),
0
,
pContent
);
return
hr
;
}
...
...
@@ -667,6 +668,7 @@ static HRESULT WINAPI domcdata_insertData(
xmlNodeSetContent
(
pDOMNode
->
node
,
str
);
hr
=
S_OK
;
}
HeapFree
(
GetProcessHeap
(),
0
,
str
);
SysFreeString
(
sNewString
);
}
...
...
dlls/msxml3/comment.c
View file @
ae2017a9
...
...
@@ -616,6 +616,7 @@ static HRESULT WINAPI domcomment_appendData(
else
hr
=
E_FAIL
;
}
HeapFree
(
GetProcessHeap
(),
0
,
pContent
);
}
else
hr
=
E_FAIL
;
...
...
@@ -680,6 +681,7 @@ static HRESULT WINAPI domcomment_insertData(
xmlNodeSetContent
(
pDOMNode
->
node
,
str
);
hr
=
S_OK
;
}
HeapFree
(
GetProcessHeap
(),
0
,
str
);
SysFreeString
(
sNewString
);
}
...
...
dlls/msxml3/node.c
View file @
ae2017a9
...
...
@@ -372,6 +372,7 @@ static HRESULT WINAPI xmlnode_put_nodeValue(
{
str
=
xmlChar_from_wchar
((
WCHAR
*
)
V_BSTR
(
&
string_value
));
xmlNodeSetContent
(
This
->
node
,
str
);
HeapFree
(
GetProcessHeap
(),
0
,
str
);
hr
=
S_OK
;
break
;
}
...
...
@@ -919,7 +920,7 @@ static HRESULT WINAPI xmlnode_put_text(
BSTR
text
)
{
xmlnode
*
This
=
impl_from_IXMLDOMNode
(
iface
);
xmlChar
*
str
=
NULL
;
xmlChar
*
str
,
*
str2
,
*
str3
;
TRACE
(
"%p
\n
"
,
This
);
...
...
@@ -934,11 +935,13 @@ static HRESULT WINAPI xmlnode_put_text(
str
=
xmlChar_from_wchar
((
WCHAR
*
)
text
);
/* Escape the string. */
str
=
xmlEncodeEntitiesReentrant
(
This
->
node
->
doc
,
str
);
str
=
xmlEncodeSpecialChars
(
This
->
node
->
doc
,
str
);
str2
=
xmlEncodeEntitiesReentrant
(
This
->
node
->
doc
,
str
);
HeapFree
(
GetProcessHeap
(),
0
,
str
);
str3
=
xmlEncodeSpecialChars
(
This
->
node
->
doc
,
str2
);
xmlFree
(
str2
);
xmlNodeSetContent
(
This
->
node
,
str
);
xmlFree
(
str
);
xmlNodeSetContent
(
This
->
node
,
str
3
);
xmlFree
(
str
3
);
return
S_OK
;
}
...
...
@@ -1091,6 +1094,7 @@ static HRESULT WINAPI xmlnode_put_dataType(
else
ERR
(
"Failed to Create Namepsace
\n
"
);
}
HeapFree
(
GetProcessHeap
(),
0
,
str
);
}
return
hr
;
...
...
dlls/msxml3/text.c
View file @
ae2017a9
...
...
@@ -603,6 +603,7 @@ static HRESULT WINAPI domtext_appendData(
hr
=
S_OK
;
else
hr
=
E_FAIL
;
HeapFree
(
GetProcessHeap
(),
0
,
pContent
);
}
else
hr
=
E_FAIL
;
...
...
@@ -667,6 +668,7 @@ static HRESULT WINAPI domtext_insertData(
xmlNodeSetContent
(
pDOMNode
->
node
,
str
);
hr
=
S_OK
;
}
HeapFree
(
GetProcessHeap
(),
0
,
str
);
SysFreeString
(
sNewString
);
}
...
...
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