Commit 11470a77 authored by Sven Baars's avatar Sven Baars Committed by Alexandre Julliard

wbemprox: Fix a leak on error path (Coverity).

parent 62a5e16e
......@@ -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;
......
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