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
629fd8fc
Commit
629fd8fc
authored
Oct 27, 2009
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 27, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Clean up locks after closing libssl and libcrypto.
SSL_CTX_free() triggers a call to the locking callback. Found by valgrind.
parent
e62fdaf0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
net.c
dlls/winhttp/net.c
+6
-7
No files found.
dlls/winhttp/net.c
View file @
629fd8fc
...
...
@@ -316,13 +316,6 @@ void netconn_unload( void )
#if defined(SONAME_LIBSSL) && defined(SONAME_LIBCRYPTO)
if
(
libcrypto_handle
)
{
if
(
ssl_locks
)
{
int
i
;
for
(
i
=
0
;
i
<
num_ssl_locks
;
i
++
)
DeleteCriticalSection
(
&
ssl_locks
[
i
]
);
HeapFree
(
GetProcessHeap
(),
0
,
ssl_locks
);
}
wine_dlclose
(
libcrypto_handle
,
NULL
,
0
);
}
if
(
libssl_handle
)
...
...
@@ -331,6 +324,12 @@ void netconn_unload( void )
pSSL_CTX_free
(
ctx
);
wine_dlclose
(
libssl_handle
,
NULL
,
0
);
}
if
(
ssl_locks
)
{
int
i
;
for
(
i
=
0
;
i
<
num_ssl_locks
;
i
++
)
DeleteCriticalSection
(
&
ssl_locks
[
i
]
);
HeapFree
(
GetProcessHeap
(),
0
,
ssl_locks
);
}
#endif
}
...
...
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