setupapi: Avoid NULL dereference in error path (Coverity).
This commit is contained in:
parent
6fb5e61afb
commit
1b27af164c
|
@ -1024,7 +1024,7 @@ static struct inf_file *parse_file( HANDLE handle, const WCHAR *class, DWORD sty
|
|||
UnmapViewOfFile( buffer );
|
||||
if (err)
|
||||
{
|
||||
free_inf_file( file );
|
||||
if (file) free_inf_file( file );
|
||||
SetLastError( err );
|
||||
file = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue