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
4696a536
Commit
4696a536
authored
Oct 21, 2009
by
Dan Kegel
Committed by
Alexandre Julliard
Oct 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Fix two little leaks in heap test.
Found by valgrind.
parent
a15e6cbb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
heap.c
dlls/kernel32/tests/heap.c
+3
-0
No files found.
dlls/kernel32/tests/heap.c
View file @
4696a536
...
...
@@ -72,6 +72,7 @@ static void test_heap(void)
/* Heap*() functions */
mem
=
HeapAlloc
(
GetProcessHeap
(),
0
,
0
);
ok
(
mem
!=
NULL
,
"memory not allocated for size 0
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
mem
);
mem
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
NULL
,
10
);
ok
(
mem
==
NULL
,
"memory allocated by HeapReAlloc
\n
"
);
...
...
@@ -249,6 +250,8 @@ static void test_heap(void)
"Expected ERROR_INVALID_HANDLE or ERROR_INVALID_PARAMETER, got %d
\n
"
,
GetLastError
());
}
GlobalFree
(
gbl
);
/* ####################################### */
/* Local*() functions */
gbl
=
LocalAlloc
(
LMEM_MOVEABLE
,
0
);
...
...
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