From 42506c94f29bb146790d89735f4d53b4722baf80 Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Sat, 19 Jul 2008 19:54:10 +0200 Subject: [PATCH] cabinet: Fix a memory leak. --- dlls/cabinet/cabinet_main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dlls/cabinet/cabinet_main.c b/dlls/cabinet/cabinet_main.c index 7ebe63cce6b..35810e3b659 100644 --- a/dlls/cabinet/cabinet_main.c +++ b/dlls/cabinet/cabinet_main.c @@ -338,7 +338,10 @@ HRESULT WINAPI Extract(SESSION *dest, LPCSTR szCabName) return E_FAIL; if (GetFileAttributesA(dest->Destination) == INVALID_FILE_ATTRIBUTES) - return S_OK; + { + res = S_OK; + goto end; + } /* split the cabinet name into path + name */ str = HeapAlloc(GetProcessHeap(), 0, lstrlenA(szCabName)+1);