Commit ea58ec84 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

wbemprox: Fix memory leak on error path in create_view (scan-build).

parent c39f785b
......@@ -62,7 +62,11 @@ HRESULT create_view( enum view_type type, enum wbm_namespace ns, const WCHAR *pa
free( view );
return hr;
}
else if (!table && ns == WBEMPROX_NAMESPACE_LAST) return WBEM_E_INVALID_CLASS;
else if (!table && ns == WBEMPROX_NAMESPACE_LAST)
{
free( view );
return WBEM_E_INVALID_CLASS;
}
view->proplist = proplist;
view->cond = cond;
break;
......
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