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 );
|
UnmapViewOfFile( buffer );
|
||||||
if (err)
|
if (err)
|
||||||
{
|
{
|
||||||
free_inf_file( file );
|
if (file) free_inf_file( file );
|
||||||
SetLastError( err );
|
SetLastError( err );
|
||||||
file = NULL;
|
file = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue