Alexander Nicolaysen Sørnes : regedit: Fix leak in GetItemFullPathW.

Alexandre Julliard julliard at winehq.org
Wed Aug 27 08:24:13 CDT 2008


Module: wine
Branch: master
Commit: b0a8b667893688061bfb4b90a25428c370dc6848
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b0a8b667893688061bfb4b90a25428c370dc6848

Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date:   Tue Aug 26 20:02:59 2008 +0200

regedit: Fix leak in GetItemFullPathW.

---

 programs/regedit/childwnd.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/programs/regedit/childwnd.c b/programs/regedit/childwnd.c
index 76f354d..842d183 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;
 }
 




More information about the wine-cvs mailing list