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

This commit is contained in:
Alex Henrie 2023-06-04 23:19:33 -06:00 committed by Alexandre Julliard
parent c39f785b34
commit ea58ec849f

View file

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