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
938f748b
Commit
938f748b
authored
Oct 20, 2007
by
Lionel Debroux
Committed by
Alexandre Julliard
Oct 22, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Fix memory leaks (found by Smatch).
parent
5c1334e7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
actctx.c
dlls/kernel32/tests/actctx.c
+2
-0
pipe.c
dlls/kernel32/tests/pipe.c
+6
-1
No files found.
dlls/kernel32/tests/actctx.c
View file @
938f748b
...
...
@@ -517,6 +517,7 @@ static void test_info_in_assembly(HANDLE handle, DWORD id, const info_in_assembl
else
ok
(
info
->
lpAssemblyDirectoryName
==
NULL
,
"info->lpAssemblyDirectoryName = %s
\n
"
,
strw
(
info
->
lpAssemblyDirectoryName
));
HeapFree
(
GetProcessHeap
(),
0
,
info
);
}
static
void
test_file_info
(
HANDLE
handle
,
ULONG
assid
,
ULONG
fileid
,
LPCWSTR
filename
)
...
...
@@ -560,6 +561,7 @@ static void test_file_info(HANDLE handle, ULONG assid, ULONG fileid, LPCWSTR fil
if
(
info
->
lpFileName
)
ok
(
!
lstrcmpiW
(
info
->
lpFileName
,
filename
),
"unexpected info->lpFileName
\n
"
);
ok
(
info
->
lpFilePath
==
NULL
,
"info->lpFilePath != NULL
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
info
);
}
static
HANDLE
test_create
(
const
char
*
file
,
const
char
*
manifest
)
...
...
dlls/kernel32/tests/pipe.c
View file @
938f748b
...
...
@@ -805,6 +805,7 @@ static void test_CreatePipe(void)
/* But now we need to get informed that the pipe is closed */
ok
(
ReadFile
(
piperead
,
readbuf
,
sizeof
(
readbuf
),
&
read
,
NULL
)
==
0
,
"Broken pipe not detected
\n
"
);
ok
(
CloseHandle
(
piperead
),
"CloseHandle for the read pipe failed
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
}
struct
named_pipe_client_params
...
...
@@ -1022,7 +1023,11 @@ static BOOL are_all_privileges_disabled(HANDLE hToken)
{
Privileges
=
HeapAlloc
(
GetProcessHeap
(),
0
,
Size
);
ret
=
GetTokenInformation
(
hToken
,
TokenPrivileges
,
Privileges
,
Size
,
&
Size
);
if
(
!
ret
)
return
FALSE
;
if
(
!
ret
)
{
HeapFree
(
GetProcessHeap
(),
0
,
Privileges
);
return
FALSE
;
}
}
else
return
FALSE
;
...
...
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