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
ef437b41
Commit
ef437b41
authored
Feb 13, 2022
by
Sven Baars
Committed by
Alexandre Julliard
Feb 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl.exe/tests: Fix some memory leaks (Valgrind).
Signed-off-by:
Sven Baars
<
sbaars@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a408bba2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
ntoskrnl.c
dlls/ntoskrnl.exe/tests/ntoskrnl.c
+8
-0
No files found.
dlls/ntoskrnl.exe/tests/ntoskrnl.c
View file @
ef437b41
...
...
@@ -235,11 +235,15 @@ static void testsign_cleanup(struct testsign_context *ctx)
ret
=
CertDeleteCertificateFromStore
(
ctx
->
root_cert
);
ok
(
ret
,
"Failed to remove certificate, error %u
\n
"
,
GetLastError
());
ret
=
CertFreeCertificateContext
(
ctx
->
root_cert
);
ok
(
ret
,
"Failed to free certificate context, error %u
\n
"
,
GetLastError
());
ret
=
CertCloseStore
(
ctx
->
root_store
,
CERT_CLOSE_STORE_CHECK_FLAG
);
ok
(
ret
,
"Failed to close store, error %u
\n
"
,
GetLastError
());
ret
=
CertDeleteCertificateFromStore
(
ctx
->
publisher_cert
);
ok
(
ret
,
"Failed to remove certificate, error %u
\n
"
,
GetLastError
());
ret
=
CertFreeCertificateContext
(
ctx
->
publisher_cert
);
ok
(
ret
,
"Failed to free certificate context, error %u
\n
"
,
GetLastError
());
ret
=
CertCloseStore
(
ctx
->
publisher_store
,
CERT_CLOSE_STORE_CHECK_FLAG
);
ok
(
ret
,
"Failed to close store, error %u
\n
"
,
GetLastError
());
...
...
@@ -1360,6 +1364,8 @@ static void add_file_to_catalog(HANDLE catalog, const WCHAR *file)
sizeof
(
L"2:6.0"
),
(
BYTE
*
)
L"2:6.0"
);
ok
(
ret
,
"Failed to write attr, error %u
\n
"
,
GetLastError
());
}
free
(
indirect_data
);
}
static
const
GUID
bus_class
=
{
0xdeadbeef
,
0x29ef
,
0x4538
,
{
0xa5
,
0xfd
,
0xb6
,
0x95
,
0x73
,
0xa3
,
0x62
,
0xc1
}};
...
...
@@ -1816,6 +1822,8 @@ static void test_pnp_driver(struct testsign_context *ctx)
ok
(
ret
,
"failed to remove device, error %#x
\n
"
,
GetLastError
());
}
SetupDiDestroyDeviceInfoList
(
set
);
/* Windows stops the service but does not delete it. */
manager
=
OpenSCManagerA
(
NULL
,
NULL
,
SC_MANAGER_CONNECT
);
ok
(
!!
manager
,
"failed to open service manager, error %u
\n
"
,
GetLastError
());
...
...
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