wbemprox: Fix memory leak on error path in create_view (scan-build).
This commit is contained in:
parent
c39f785b34
commit
ea58ec849f
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue