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
26db17e9
Commit
26db17e9
authored
Jan 17, 2019
by
Sven Baars
Committed by
Alexandre Julliard
Jan 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl.exe/tests: Fix some memory leaks (Valgrind).
Signed-off-by:
Sven Baars
<
sven.wine@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5bfa5f1e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
ntoskrnl.c
dlls/ntoskrnl.exe/tests/ntoskrnl.c
+4
-0
No files found.
dlls/ntoskrnl.exe/tests/ntoskrnl.c
View file @
26db17e9
...
...
@@ -33,6 +33,7 @@
static
HANDLE
device
;
static
BOOL
(
WINAPI
*
pRtlDosPathNameToNtPathName_U
)(
LPCWSTR
,
PUNICODE_STRING
,
PWSTR
*
,
CURDIR
*
);
static
BOOL
(
WINAPI
*
pRtlFreeUnicodeString
)(
PUNICODE_STRING
);
static
void
load_resource
(
const
char
*
name
,
char
*
filename
)
{
...
...
@@ -177,6 +178,8 @@ static void main_test(void)
}
while
(
read
==
sizeof
(
buffer
));
winetest_add_failures
(
new_failures
);
pRtlFreeUnicodeString
(
&
pathU
);
heap_free
(
test_input
);
CloseHandle
(
okfile
);
DeleteFileW
(
pathW
);
}
...
...
@@ -249,6 +252,7 @@ START_TEST(ntoskrnl)
HMODULE
hntdll
=
GetModuleHandleA
(
"ntdll.dll"
);
pRtlDosPathNameToNtPathName_U
=
(
void
*
)
GetProcAddress
(
hntdll
,
"RtlDosPathNameToNtPathName_U"
);
pRtlFreeUnicodeString
=
(
void
*
)
GetProcAddress
(
hntdll
,
"RtlFreeUnicodeString"
);
if
(
!
(
service
=
load_driver
(
filename
,
"driver.dll"
,
"WineTestDriver"
)))
return
;
...
...
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