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
c8921133
Commit
c8921133
authored
Dec 17, 2009
by
Lei Zhang
Committed by
Alexandre Julliard
Dec 17, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32: Fix memory leak in SECUR32_addPackages.
parent
26d541b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
secur32.c
dlls/secur32/secur32.c
+8
-5
No files found.
dlls/secur32/secur32.c
View file @
c8921133
...
...
@@ -666,9 +666,6 @@ SecurePackage *SECUR32_findPackageA(PCSTR packageName)
static
void
SECUR32_freeProviders
(
void
)
{
SecurePackage
*
package
;
SecureProvider
*
provider
;
TRACE
(
"
\n
"
);
EnterCriticalSection
(
&
cs
);
...
...
@@ -676,10 +673,13 @@ static void SECUR32_freeProviders(void)
if
(
packageTable
)
{
LIST_FOR_EACH_ENTRY
(
package
,
&
packageTable
->
table
,
SecurePackage
,
entry
)
SecurePackage
*
package
,
*
package_next
;
LIST_FOR_EACH_ENTRY_SAFE
(
package
,
package_next
,
&
packageTable
->
table
,
SecurePackage
,
entry
)
{
HeapFree
(
GetProcessHeap
(),
0
,
package
->
infoW
.
Name
);
HeapFree
(
GetProcessHeap
(),
0
,
package
->
infoW
.
Comment
);
HeapFree
(
GetProcessHeap
(),
0
,
package
);
}
HeapFree
(
GetProcessHeap
(),
0
,
packageTable
);
...
...
@@ -688,11 +688,14 @@ static void SECUR32_freeProviders(void)
if
(
providerTable
)
{
LIST_FOR_EACH_ENTRY
(
provider
,
&
providerTable
->
table
,
SecureProvider
,
entry
)
SecureProvider
*
provider
,
*
provider_next
;
LIST_FOR_EACH_ENTRY_SAFE
(
provider
,
provider_next
,
&
providerTable
->
table
,
SecureProvider
,
entry
)
{
HeapFree
(
GetProcessHeap
(),
0
,
provider
->
moduleName
);
if
(
provider
->
lib
)
FreeLibrary
(
provider
->
lib
);
HeapFree
(
GetProcessHeap
(),
0
,
provider
);
}
HeapFree
(
GetProcessHeap
(),
0
,
providerTable
);
...
...
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