wbemprox: Fix a leak on error path (Coverity).
Signed-off-by: Sven Baars <sven.wine@gmail.com> Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
62a5e16eec
commit
11470a7763
|
@ -57,7 +57,11 @@ HRESULT create_view( enum view_type type, const WCHAR *path, const struct keywor
|
|||
struct table *table = grab_table( class );
|
||||
HRESULT hr;
|
||||
|
||||
if (table && (hr = append_table( view, table )) != S_OK) return hr;
|
||||
if (table && (hr = append_table( view, table )) != S_OK)
|
||||
{
|
||||
heap_free( view );
|
||||
return hr;
|
||||
}
|
||||
view->proplist = proplist;
|
||||
view->cond = cond;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue