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
05f6769f
Commit
05f6769f
authored
Dec 14, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inetcomm: Fix a leak on DeleteProp() (Valgrind).
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
75b02759
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
mimeole.c
dlls/inetcomm/mimeole.c
+10
-6
No files found.
dlls/inetcomm/mimeole.c
View file @
05f6769f
...
...
@@ -819,16 +819,21 @@ static void empty_param_list(struct list *list)
}
}
static
void
free_header
(
header_t
*
header
)
{
list_remove
(
&
header
->
entry
);
PropVariantClear
(
&
header
->
value
);
empty_param_list
(
&
header
->
params
);
heap_free
(
header
);
}
static
void
empty_header_list
(
struct
list
*
list
)
{
header_t
*
header
,
*
cursor2
;
LIST_FOR_EACH_ENTRY_SAFE
(
header
,
cursor2
,
list
,
header_t
,
entry
)
{
list_remove
(
&
header
->
entry
);
PropVariantClear
(
&
header
->
value
);
empty_param_list
(
&
header
->
params
);
HeapFree
(
GetProcessHeap
(),
0
,
header
);
free_header
(
header
);
}
}
...
...
@@ -1232,8 +1237,7 @@ static HRESULT WINAPI MimeBody_DeleteProp(
if
(
found
)
{
list_remove
(
&
cursor
->
entry
);
HeapFree
(
GetProcessHeap
(),
0
,
cursor
);
free_header
(
cursor
);
return
S_OK
;
}
}
...
...
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