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
533a426d
Commit
533a426d
authored
Jun 05, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 05, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl.exe: Free device IDs from pool.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6937b987
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
pnp.c
dlls/ntoskrnl.exe/pnp.c
+5
-5
No files found.
dlls/ntoskrnl.exe/pnp.c
View file @
533a426d
...
...
@@ -301,7 +301,7 @@ static void handle_bus_relations( DEVICE_OBJECT *device )
if
(
get_driver_for_id
(
ptr
,
driver
))
break
;
}
RtlFreeHeap
(
GetProcessHeap
(),
0
,
ids
);
ExFreePool
(
ids
);
if
(
!
driver
[
0
])
{
...
...
@@ -409,7 +409,7 @@ NTSTATUS WINAPI IoGetDeviceProperty( DEVICE_OBJECT *device, DEVICE_REGISTRY_PROP
else
status
=
STATUS_BUFFER_TOO_SMALL
;
HeapFree
(
GetProcessHeap
(),
0
,
id
);
ExFreePool
(
id
);
break
;
}
case
DevicePropertyPhysicalDeviceObjectName
:
...
...
@@ -658,17 +658,17 @@ NTSTATUS WINAPI IoRegisterDeviceInterface(DEVICE_OBJECT *device, const GUID *cla
HeapFree
(
GetProcessHeap
(),
0
,
id
);
if
(
!
rc
)
{
HeapFree
(
GetProcessHeap
(),
0
,
instance_id
);
ExFreePool
(
instance_id
);
return
STATUS_UNSUCCESSFUL
;
}
}
else
{
HeapFree
(
GetProcessHeap
(),
0
,
instance_id
);
ExFreePool
(
instance_id
);
return
STATUS_UNSUCCESSFUL
;
}
}
HeapFree
(
GetProcessHeap
(),
0
,
instance_id
);
ExFreePool
(
instance_id
);
if
(
!
SetupDiCreateDeviceInterfaceW
(
set
,
&
sp_device
,
class_guid
,
refstr
?
refstr
->
Buffer
:
NULL
,
0
,
&
sp_iface
))
return
STATUS_UNSUCCESSFUL
;
...
...
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