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
a9a852fa
Commit
a9a852fa
authored
May 21, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
May 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Give earlier notify to valgrind that HeapFree is trying to free some memory.
parent
bd58463e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
heap.c
dlls/ntdll/heap.c
+3
-3
No files found.
dlls/ntdll/heap.c
View file @
a9a852fa
...
...
@@ -1280,8 +1280,10 @@ BOOLEAN WINAPI RtlFreeHeap( HANDLE heap, ULONG flags, PVOID ptr )
flags
|=
heapPtr
->
flags
;
if
(
!
(
flags
&
HEAP_NO_SERIALIZE
))
RtlEnterCriticalSection
(
&
heapPtr
->
critSection
);
/* Some sanity checks */
/* Inform valgrind we are trying to free memory, so it can throw up an error message */
notify_free
(
ptr
);
/* Some sanity checks */
pInUse
=
(
ARENA_INUSE
*
)
ptr
-
1
;
if
(
!
(
subheap
=
HEAP_FindSubHeap
(
heapPtr
,
pInUse
)))
goto
error
;
if
((
char
*
)
pInUse
<
(
char
*
)
subheap
->
base
+
subheap
->
headerSize
)
goto
error
;
...
...
@@ -1289,8 +1291,6 @@ BOOLEAN WINAPI RtlFreeHeap( HANDLE heap, ULONG flags, PVOID ptr )
/* Turn the block into a free block */
notify_free
(
ptr
);
HEAP_MakeInUseBlockFree
(
subheap
,
pInUse
);
if
(
!
(
flags
&
HEAP_NO_SERIALIZE
))
RtlLeaveCriticalSection
(
&
heapPtr
->
critSection
);
...
...
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