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
911d0df6
Commit
911d0df6
authored
Feb 23, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
Feb 23, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Fix a memory leak.
Found by Valgrind.
parent
5c596171
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
http.c
dlls/wininet/http.c
+4
-1
No files found.
dlls/wininet/http.c
View file @
911d0df6
...
...
@@ -4431,7 +4431,7 @@ static INT HTTP_GetResponseHeaders(http_request_t *lpwhr, BOOL clear)
char
bufferA
[
MAX_REPLY_LEN
];
LPWSTR
status_code
=
NULL
,
status_text
=
NULL
;
DWORD
cchMaxRawHeaders
=
1024
;
LPWSTR
lpszRawHeaders
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
cchMaxRawHeaders
+
1
)
*
sizeof
(
WCHAR
))
;
LPWSTR
lpszRawHeaders
=
NULL
;
LPWSTR
temp
;
DWORD
cchRawHeaders
=
0
;
BOOL
codeHundred
=
FALSE
;
...
...
@@ -4507,6 +4507,9 @@ static INT HTTP_GetResponseHeaders(http_request_t *lpwhr, BOOL clear)
*
(
status_text
-
1
)
=
' '
;
/* regenerate raw headers */
lpszRawHeaders
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
cchMaxRawHeaders
+
1
)
*
sizeof
(
WCHAR
));
if
(
!
lpszRawHeaders
)
goto
lend
;
while
(
cchRawHeaders
+
buflen
+
strlenW
(
szCrLf
)
>
cchMaxRawHeaders
)
cchMaxRawHeaders
*=
2
;
temp
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
lpszRawHeaders
,
(
cchMaxRawHeaders
+
1
)
*
sizeof
(
WCHAR
));
...
...
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