forked from Mirrors/wine-wine
msi: Fix a leak on error path (Coverity).
parent
0bcf4a5bb6
commit
5497a41e92
|
@ -1153,7 +1153,7 @@ UINT WINAPI MsiSourceListAddSourceExW( LPCWSTR szProduct, LPCWSTR szUserSid,
|
||||||
list_init(&sourcelist);
|
list_init(&sourcelist);
|
||||||
rc = fill_source_list(&sourcelist, typekey, &count);
|
rc = fill_source_list(&sourcelist, typekey, &count);
|
||||||
if (rc != ERROR_NO_MORE_ITEMS)
|
if (rc != ERROR_NO_MORE_ITEMS)
|
||||||
return rc;
|
goto done;
|
||||||
|
|
||||||
size = (lstrlenW(source) + 1) * sizeof(WCHAR);
|
size = (lstrlenW(source) + 1) * sizeof(WCHAR);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue