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
62e0a8ca
Commit
62e0a8ca
authored
Jun 20, 2008
by
Rob Shearman
Committed by
Alexandre Julliard
Jun 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Fix memory leak in HTTP_DeleteCustomHeader.
Free the memory associated with the field and value of the custom header otherwise it will be leaked. Found by Valgrind.
parent
24ec4a6e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
http.c
dlls/wininet/http.c
+3
-0
No files found.
dlls/wininet/http.c
View file @
62e0a8ca
...
@@ -4141,6 +4141,9 @@ static BOOL HTTP_DeleteCustomHeader(LPWININETHTTPREQW lpwhr, DWORD index)
...
@@ -4141,6 +4141,9 @@ static BOOL HTTP_DeleteCustomHeader(LPWININETHTTPREQW lpwhr, DWORD index)
return
FALSE
;
return
FALSE
;
lpwhr
->
nCustHeaders
--
;
lpwhr
->
nCustHeaders
--
;
HeapFree
(
GetProcessHeap
(),
0
,
lpwhr
->
pCustHeaders
[
index
].
lpszField
);
HeapFree
(
GetProcessHeap
(),
0
,
lpwhr
->
pCustHeaders
[
index
].
lpszValue
);
memmove
(
&
lpwhr
->
pCustHeaders
[
index
],
&
lpwhr
->
pCustHeaders
[
index
+
1
],
memmove
(
&
lpwhr
->
pCustHeaders
[
index
],
&
lpwhr
->
pCustHeaders
[
index
+
1
],
(
lpwhr
->
nCustHeaders
-
index
)
*
sizeof
(
HTTPHEADERW
)
);
(
lpwhr
->
nCustHeaders
-
index
)
*
sizeof
(
HTTPHEADERW
)
);
memset
(
&
lpwhr
->
pCustHeaders
[
lpwhr
->
nCustHeaders
],
0
,
sizeof
(
HTTPHEADERW
)
);
memset
(
&
lpwhr
->
pCustHeaders
[
lpwhr
->
nCustHeaders
],
0
,
sizeof
(
HTTPHEADERW
)
);
...
...
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