Commit ff6eadc6 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

ntoskrnl.exe: Fix service handle leak in ZwLoadDriver() (Coverity).

parent 0ff7fd12
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment