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
fd3c8335
Commit
fd3c8335
authored
Sep 28, 2009
by
Dylan Smith
Committed by
Alexandre Julliard
Sep 28, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32: Free schannel handle table.
The table is initialized on process attach, and should be freed on process detach (which is where SECUR32_deinitSchannelSP gets called).
parent
fdcfbe21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
schannel.c
dlls/secur32/schannel.c
+25
-0
No files found.
dlls/secur32/schannel.c
View file @
fd3c8335
...
...
@@ -1413,8 +1413,33 @@ fail:
void
SECUR32_deinitSchannelSP
(
void
)
{
int
i
=
schan_handle_table_size
;
if
(
!
libgnutls_handle
)
return
;
/* deinitialized sessions first because a pointer to the credentials
* are stored for the session by calling gnutls_credentials_set. */
while
(
--
i
)
{
if
(
schan_handle_table
[
i
].
type
==
SCHAN_HANDLE_CTX
)
{
struct
schan_context
*
ctx
=
schan_free_handle
(
i
,
SCHAN_HANDLE_CTX
);
pgnutls_deinit
(
ctx
->
session
);
HeapFree
(
GetProcessHeap
(),
0
,
ctx
);
}
}
i
=
schan_handle_table_size
;
while
(
--
i
)
{
if
(
schan_handle_table
[
i
].
type
!=
SCHAN_HANDLE_FREE
)
{
struct
schan_credentials
*
cred
;
cred
=
schan_free_handle
(
i
,
SCHAN_HANDLE_CRED
);
pgnutls_certificate_free_credentials
(
cred
->
credentials
);
HeapFree
(
GetProcessHeap
(),
0
,
cred
);
}
}
HeapFree
(
GetProcessHeap
(),
0
,
schan_handle_table
);
pgnutls_global_deinit
();
wine_dlclose
(
libgnutls_handle
,
NULL
,
0
);
}
...
...
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