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

oldstable
Nikolay Sivov 2014-04-10 09:22:13 +04:00 committed by Alexandre Julliard
parent 0bcf4a5bb6
commit 5497a41e92
1 changed files with 1 additions and 1 deletions

View File

@ -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);