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
7a8818e7
Commit
7a8818e7
authored
May 01, 2006
by
Michael Stefaniuc
Committed by
Alexandre Julliard
May 05, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't check pointers for NULL before RtlFreeHeap. It is redundant.
parent
968ad51d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
11 deletions
+7
-11
sync.c
dlls/kernel/sync.c
+2
-5
debugbuffer.c
dlls/ntdll/debugbuffer.c
+3
-3
reg.c
dlls/ntdll/reg.c
+1
-2
thread.c
dlls/ntdll/thread.c
+1
-1
No files found.
dlls/kernel/sync.c
View file @
7a8818e7
...
...
@@ -386,11 +386,8 @@ void WINAPI MakeCriticalSectionGlobal( CRITICAL_SECTION *crit )
HANDLE
sem
=
crit
->
LockSemaphore
;
if
(
!
sem
)
NtCreateSemaphore
(
&
sem
,
SEMAPHORE_ALL_ACCESS
,
NULL
,
0
,
1
);
crit
->
LockSemaphore
=
ConvertToGlobalHandle
(
sem
);
if
(
crit
->
DebugInfo
)
{
RtlFreeHeap
(
GetProcessHeap
(),
0
,
crit
->
DebugInfo
);
crit
->
DebugInfo
=
NULL
;
}
RtlFreeHeap
(
GetProcessHeap
(),
0
,
crit
->
DebugInfo
);
crit
->
DebugInfo
=
NULL
;
}
...
...
dlls/ntdll/debugbuffer.c
View file @
7a8818e7
...
...
@@ -107,9 +107,9 @@ NTSTATUS WINAPI RtlDestroyQueryDebugBuffer(IN PDEBUG_BUFFER iBuf)
NTSTATUS
nts
=
STATUS_SUCCESS
;
FIXME
(
"(%p): stub
\n
"
,
iBuf
);
if
(
NULL
!=
iBuf
)
{
if
(
NULL
!=
iBuf
->
ModuleInformation
)
RtlFreeHeap
(
GetProcessHeap
(),
0
,
iBuf
->
ModuleInformation
);
if
(
NULL
!=
iBuf
->
HeapInformation
)
RtlFreeHeap
(
GetProcessHeap
(),
0
,
iBuf
->
HeapInformation
);
if
(
NULL
!=
iBuf
->
LockInformation
)
RtlFreeHeap
(
GetProcessHeap
(),
0
,
iBuf
->
LockInformation
);
RtlFreeHeap
(
GetProcessHeap
(),
0
,
iBuf
->
ModuleInformation
);
RtlFreeHeap
(
GetProcessHeap
(),
0
,
iBuf
->
HeapInformation
);
RtlFreeHeap
(
GetProcessHeap
(),
0
,
iBuf
->
LockInformation
);
RtlFreeHeap
(
GetProcessHeap
(),
0
,
iBuf
);
}
return
nts
;
...
...
dlls/ntdll/reg.c
View file @
7a8818e7
...
...
@@ -345,8 +345,7 @@ NTSTATUS WINAPI RtlpNtEnumerateSubKey( HANDLE handle, UNICODE_STRING *out, ULONG
}
}
if
(
info
)
RtlFreeHeap
(
GetProcessHeap
(),
0
,
info
);
RtlFreeHeap
(
GetProcessHeap
(),
0
,
info
);
return
ret
;
}
...
...
dlls/ntdll/thread.c
View file @
7a8818e7
...
...
@@ -470,7 +470,7 @@ error:
SIZE_T
size
=
0
;
NtFreeVirtualMemory
(
NtCurrentProcess
(),
&
addr
,
&
size
,
MEM_RELEASE
);
}
if
(
info
)
RtlFreeHeap
(
GetProcessHeap
(),
0
,
info
);
RtlFreeHeap
(
GetProcessHeap
(),
0
,
info
);
if
(
handle
)
NtClose
(
handle
);
close
(
request_pipe
[
1
]
);
return
status
;
...
...
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