Alex Henrie : shell32: Fix memory leak on error path in FolderItems_Constructor (scan-build).
Module: wine Branch: master Commit: 9c4d30ad70af063d806c8724c4f05de7a63e4d6a URL: https://gitlab.winehq.org/wine/wine/-/commit/9c4d30ad70af063d806c8724c4f05de... Author: Alex Henrie <alexhenrie24(a)gmail.com> Date: Sun Jun 11 22:47:18 2023 -0600 shell32: Fix memory leak on error path in FolderItems_Constructor (scan-build). --- dlls/shell32/shelldispatch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/shell32/shelldispatch.c b/dlls/shell32/shelldispatch.c index 01353bda82d..dd58c755c61 100644 --- a/dlls/shell32/shelldispatch.c +++ b/dlls/shell32/shelldispatch.c @@ -1682,6 +1682,7 @@ static HRESULT FolderItems_Constructor(FolderImpl *folder, FolderItems **ret) return S_OK; failed: + FolderItemsImpl_Release(&This->FolderItems3_iface); if (enumidlist) IEnumIDList_Release(enumidlist); return hr;
participants (1)
-
Alexandre Julliard