mirror of
https://github.com/reactos/reactos.git
synced 2025-05-08 03:07:05 +00:00
[MOUCLASS][KBDCLASS]
- Fix a file object reference leak on legacy enumerated keyboard and mouse port drivers svn path=/trunk/; revision=56067
This commit is contained in:
parent
8fb6abbc24
commit
ccae886429
2 changed files with 4 additions and 0 deletions
|
@ -1008,6 +1008,8 @@ SearchForLegacyDrivers(
|
||||||
/* FIXME: Log the error */
|
/* FIXME: Log the error */
|
||||||
WARN_(CLASS_NAME, "ClassAddDevice() failed with status 0x%08lx\n", Status);
|
WARN_(CLASS_NAME, "ClassAddDevice() failed with status 0x%08lx\n", Status);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ObDereferenceObject(FileObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
|
|
|
@ -984,6 +984,8 @@ SearchForLegacyDrivers(
|
||||||
/* FIXME: Log the error */
|
/* FIXME: Log the error */
|
||||||
WARN_(CLASS_NAME, "ClassAddDevice() failed with status 0x%08lx\n", Status);
|
WARN_(CLASS_NAME, "ClassAddDevice() failed with status 0x%08lx\n", Status);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ObDereferenceObject(FileObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
|
|
Loading…
Reference in a new issue