Module: wine Branch: master Commit: fef36600242fd603bbc03633d747595d01ef660c URL: http://source.winehq.org/git/wine.git/?a=commit;h=fef36600242fd603bbc03633d7...
Author: Alexander Nicolaysen Sørnes alex@thehandofagony.com Date: Sun Aug 31 01:23:17 2008 +0200
regedit: Fix a memory leak.
---
programs/regedit/childwnd.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/programs/regedit/childwnd.c b/programs/regedit/childwnd.c index bb8cf6f..9e6e9e0 100644 --- a/programs/regedit/childwnd.c +++ b/programs/regedit/childwnd.c @@ -138,7 +138,7 @@ static LPWSTR GetPathRoot(HWND hwndTV, HTREEITEM hItem, BOOL bFull) { HKEY hRootKey = NULL; if (!hItem) hItem = TreeView_GetSelection(hwndTV); - GetItemPath(hwndTV, hItem, &hRootKey); + HeapFree(GetProcessHeap(), 0, GetItemPath(hwndTV, hItem, &hRootKey)); if (!bFull && !hRootKey) return NULL; if (hRootKey)