setupapi: Avoid NULL dereference in error path (Coverity).

This commit is contained in:
Marcus Meissner 2010-01-08 09:20:34 +01:00 committed by Alexandre Julliard
parent 6fb5e61afb
commit 1b27af164c

View file

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