Nikolay Sivov : msi: Fix a leak on error path (Coverity).
Alexandre Julliard
julliard at winehq.org
Thu Apr 10 12:21:28 CDT 2014
Module: wine
Branch: master
Commit: 5497a41e9256f8e7f99bd860c445543bc7f5c942
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5497a41e9256f8e7f99bd860c445543bc7f5c942
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Thu Apr 10 09:22:13 2014 +0400
msi: Fix a leak on error path (Coverity).
---
dlls/msi/source.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/msi/source.c b/dlls/msi/source.c
index ab8541c..2b88ce3 100644
--- a/dlls/msi/source.c
+++ b/dlls/msi/source.c
@@ -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);
More information about the wine-cvs
mailing list