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:
Józef Kucia 2019-01-08 11:19:20 +01:00 committed by Alexandre Julliard
parent 0ff7fd1259
commit ff6eadc6ae
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}