ntoskrnl.exe: Fix service handle leak in ZwLoadDriver() (Coverity).
Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
0ff7fd1259
commit
ff6eadc6ae
|
@ -3523,6 +3523,7 @@ NTSTATUS WINAPI ZwLoadDriver( const UNICODE_STRING *service_name )
|
|||
{
|
||||
TRACE( "driver %s already loaded\n", debugstr_us(&drv_name) );
|
||||
RtlFreeUnicodeString( &drv_name );
|
||||
CloseServiceHandle( (void *)service_handle );
|
||||
return STATUS_IMAGE_ALREADY_LOADED;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue