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
18ac7e15
Commit
18ac7e15
authored
Jan 24, 2019
by
Sven Baars
Committed by
Alexandre Julliard
Jan 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wsdapi: Fix some memory leaks (Valgrind).
Signed-off-by:
Sven Baars
<
sven.wine@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e9c90afc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
soap.c
dlls/wsdapi/soap.c
+11
-2
No files found.
dlls/wsdapi/soap.c
View file @
18ac7e15
...
...
@@ -1426,6 +1426,9 @@ static HRESULT ws_element_to_wsdxml_element(WS_XML_READER *reader, IWSDXMLContex
if
(
FAILED
(
ret
))
goto
cleanup
;
WSDXMLAddChild
(
cur_element
,
element
);
WSDFreeLinkedMemory
(
name
);
name
=
NULL
;
cur_wsd_attrib
=
NULL
;
/* Add attributes */
...
...
@@ -1462,6 +1465,9 @@ static HRESULT ws_element_to_wsdxml_element(WS_XML_READER *reader, IWSDXMLContex
new_wsd_attrib
->
Element
=
cur_element
;
new_wsd_attrib
->
Next
=
NULL
;
WSDAttachLinkedMemory
(
new_wsd_attrib
,
name
);
name
=
NULL
;
if
(
cur_wsd_attrib
==
NULL
)
element
->
FirstAttribute
=
new_wsd_attrib
;
else
...
...
@@ -1524,6 +1530,7 @@ outofmemory:
cleanup:
/* Free uri and element_name if applicable */
WSDFreeLinkedMemory
(
uri
);
WSDFreeLinkedMemory
(
name
);
return
ret
;
}
...
...
@@ -1712,10 +1719,10 @@ HRESULT read_message(IWSDiscoveryPublisherImpl *impl, const char *xml, int xml_l
IWSDXMLContext
*
context
=
NULL
;
WS_XML_STRING
*
soap_uri
=
NULL
;
const
WS_XML_NODE
*
node
;
WS_XML_READER
*
reader
;
WS_XML_READER
*
reader
=
NULL
;
LPCWSTR
value
=
NULL
;
LPWSTR
uri
,
prefix
;
WS_HEAP
*
heap
;
WS_HEAP
*
heap
=
NULL
;
HRESULT
ret
;
int
i
;
...
...
@@ -1945,6 +1952,8 @@ cleanup:
free_xml_string
(
soap_uri
);
WSDFreeLinkedMemory
(
soap_msg
);
if
(
context
!=
NULL
)
IWSDXMLContext_Release
(
context
);
if
(
reader
!=
NULL
)
WsFreeReader
(
reader
);
if
(
heap
!=
NULL
)
WsFreeHeap
(
heap
);
return
ret
;
}
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