ole32: Fix call to free_stringtable with uninitialized pointer (Coverity).
This commit is contained in:
parent
83aca6e7aa
commit
59a1bcd96a
|
@ -924,7 +924,8 @@ static HRESULT WINAPI
|
|||
FileMonikerImpl_CommonPrefixWith(IMoniker* iface,IMoniker* pmkOther,IMoniker** ppmkPrefix)
|
||||
{
|
||||
|
||||
LPOLESTR pathThis = NULL, pathOther = NULL,*stringTable1,*stringTable2,commonPath = NULL;
|
||||
LPOLESTR pathThis = NULL, pathOther = NULL, *stringTable1 = NULL;
|
||||
LPOLESTR *stringTable2 = NULL, commonPath = NULL;
|
||||
IBindCtx *bindctx;
|
||||
DWORD mkSys;
|
||||
ULONG nb1,nb2,i,sameIdx;
|
||||
|
@ -1012,8 +1013,8 @@ failed:
|
|||
CoTaskMemFree(pathThis);
|
||||
CoTaskMemFree(pathOther);
|
||||
CoTaskMemFree(commonPath);
|
||||
free_stringtable(stringTable1);
|
||||
free_stringtable(stringTable2);
|
||||
if (stringTable1) free_stringtable(stringTable1);
|
||||
if (stringTable2) free_stringtable(stringTable2);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue