Commit 1b27af16 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

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

parent 6fb5e61a
......@@ -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;
}
......
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