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
ad545733
Commit
ad545733
authored
Aug 23, 2018
by
Francois Gouget
Committed by
Alexandre Julliard
Aug 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wsdapi/tests: Avoid calls to malloc() and free().
Signed-off-by:
Francois Gouget
<
fgouget@free.fr
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a53591ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
discovery.c
dlls/wsdapi/tests/discovery.c
+6
-6
No files found.
dlls/wsdapi/tests/discovery.c
View file @
ad545733
...
...
@@ -1029,20 +1029,20 @@ static void Publish_tests(void)
another_name
.
LocalName
=
(
WCHAR
*
)
name_cider
;
another_name
.
Space
=
&
ns2
;
types_list
.
Next
=
m
alloc
(
sizeof
(
WSD_NAME_LIST
));
types_list
.
Next
=
heap_
alloc
(
sizeof
(
WSD_NAME_LIST
));
types_list
.
Element
=
&
another_name
;
types_list
.
Next
->
Next
=
NULL
;
types_list
.
Next
->
Element
=
&
header_any_name
;
/* Create scopes and xaddrs lists */
scopes_list
.
Next
=
m
alloc
(
sizeof
(
WSD_URI_LIST
));
scopes_list
.
Next
=
heap_
alloc
(
sizeof
(
WSD_URI_LIST
));
scopes_list
.
Element
=
uri
;
scopes_list
.
Next
->
Next
=
NULL
;
scopes_list
.
Next
->
Element
=
uri_more_tests
;
xaddrs_list
.
Next
=
m
alloc
(
sizeof
(
WSD_URI_LIST
));
xaddrs_list
.
Next
=
heap_
alloc
(
sizeof
(
WSD_URI_LIST
));
xaddrs_list
.
Element
=
uri_more_tests
;
xaddrs_list
.
Next
->
Next
=
NULL
;
...
...
@@ -1056,9 +1056,9 @@ static void Publish_tests(void)
WSDFreeLinkedMemory
(
body_any_element
);
WSDFreeLinkedMemory
(
endpoint_any_element
);
WSDFreeLinkedMemory
(
ref_param_any_element
);
free
(
types_list
.
Next
);
free
(
scopes_list
.
Next
);
free
(
xaddrs_list
.
Next
);
heap_
free
(
types_list
.
Next
);
heap_
free
(
scopes_list
.
Next
);
heap_
free
(
xaddrs_list
.
Next
);
ok
(
rc
==
S_OK
,
"Publish failed: %08x
\n
"
,
rc
);
...
...
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