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
4a22c88b
Commit
4a22c88b
authored
Dec 07, 2009
by
Hans Leidekker
Committed by
Alexandre Julliard
Dec 07, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Cleanup any existing cache file before creating a new one.
Otherwise we leak the file name and handle when a request is sent again. Found by Valgrind.
parent
552db89b
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 @
4a22c88b
...
...
@@ -3638,6 +3638,9 @@ static DWORD HTTP_HttpSendRequestW(http_request_t *lpwhr, LPCWSTR lpszHeaders,
b
=
CreateUrlCacheEntryW
(
url
,
lpwhr
->
dwContentLength
>
0
?
lpwhr
->
dwContentLength
:
0
,
NULL
,
cacheFileName
,
0
);
if
(
b
)
{
HeapFree
(
GetProcessHeap
(),
0
,
lpwhr
->
lpszCacheFile
);
CloseHandle
(
lpwhr
->
hCacheFile
);
lpwhr
->
lpszCacheFile
=
heap_strdupW
(
cacheFileName
);
lpwhr
->
hCacheFile
=
CreateFileW
(
lpwhr
->
lpszCacheFile
,
GENERIC_WRITE
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
,
NULL
,
CREATE_ALWAYS
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
...
...
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