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
4dfec39b
Commit
4dfec39b
authored
Aug 22, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 24, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Don't free gzip_stream in HTTPREQ_CloseConnection.
parent
c19c009e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
http.c
dlls/wininet/http.c
+9
-8
No files found.
dlls/wininet/http.c
View file @
4dfec39b
...
...
@@ -1545,6 +1545,14 @@ static void HTTPREQ_Destroy(object_header_t *hdr)
HeapFree
(
GetProcessHeap
(),
0
,
lpwhr
->
pCustHeaders
[
i
].
lpszValue
);
}
#ifdef HAVE_ZLIB
if
(
lpwhr
->
gzip_stream
)
{
if
(
!
lpwhr
->
gzip_stream
->
end_of_data
)
inflateEnd
(
&
lpwhr
->
gzip_stream
->
zstream
);
HeapFree
(
GetProcessHeap
(),
0
,
lpwhr
->
gzip_stream
);
}
#endif
HeapFree
(
GetProcessHeap
(),
0
,
lpwhr
->
pCustHeaders
);
HeapFree
(
GetProcessHeap
(),
0
,
lpwhr
);
}
...
...
@@ -1555,14 +1563,6 @@ static void HTTPREQ_CloseConnection(object_header_t *hdr)
TRACE
(
"%p
\n
"
,
lpwhr
);
#ifdef HAVE_ZLIB
if
(
lpwhr
->
gzip_stream
)
{
inflateEnd
(
&
lpwhr
->
gzip_stream
->
zstream
);
HeapFree
(
GetProcessHeap
(),
0
,
lpwhr
->
gzip_stream
);
lpwhr
->
gzip_stream
=
NULL
;
}
#endif
if
(
!
NETCON_connected
(
&
lpwhr
->
netConnection
))
return
;
...
...
@@ -2057,6 +2057,7 @@ static DWORD read_gzip_data(http_request_t *req, BYTE *buf, int size, BOOL sync,
if
(
zres
==
Z_STREAM_END
)
{
TRACE
(
"end of data
\n
"
);
req
->
gzip_stream
->
end_of_data
=
TRUE
;
inflateEnd
(
&
req
->
gzip_stream
->
zstream
);
}
else
if
(
zres
!=
Z_OK
)
{
WARN
(
"inflate failed %d
\n
"
,
zres
);
if
(
!
read
)
...
...
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