mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-27 03:43:36 +00:00
[NTOS:IO] Fix a reference leak in IopSynchronousCall on failure case
Co-authored-by: Vadim Galyant <[email protected]>
This commit is contained in:
co-authored by
Vadim Galyant
parent
9bd9c9d5a4
commit
32c7c1157d
@@ -563,7 +563,11 @@ IopSynchronousCall(IN PDEVICE_OBJECT DeviceObject,
|
||||
|
||||
/* Allocate an IRP */
|
||||
Irp = IoAllocateIrp(TopDeviceObject->StackSize, FALSE);
|
||||
if (!Irp) return STATUS_INSUFFICIENT_RESOURCES;
|
||||
if (!Irp)
|
||||
{
|
||||
ObDereferenceObject(TopDeviceObject);
|
||||
return STATUS_INSUFFICIENT_RESOURCES;
|
||||
}
|
||||
|
||||
/* Initialize to failure */
|
||||
Irp->IoStatus.Status = IoStatusBlock.Status = STATUS_NOT_SUPPORTED;
|
||||
|
||||
Reference in New Issue
Block a user