From b0a8b667893688061bfb4b90a25428c370dc6848 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Tue, 26 Aug 2008 20:02:59 +0200 Subject: [PATCH] regedit: Fix leak in GetItemFullPathW. --- programs/regedit/childwnd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/programs/regedit/childwnd.c b/programs/regedit/childwnd.c index 76f354dd5e4..842d1830cdd 100644 --- a/programs/regedit/childwnd.c +++ b/programs/regedit/childwnd.c @@ -215,6 +215,7 @@ LPWSTR GetItemFullPathW(HWND hwndTV, HTREEITEM hItem, BOOL bFull) { parts[1] = GetItemPathW(hwndTV, hItem, &hRootKey); ret = CombinePathsW((LPCWSTR *)parts, 2); HeapFree(GetProcessHeap(), 0, parts[0]); + HeapFree(GetProcessHeap(), 0, parts[1]); return ret; }