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