[PATCH 3/7] regedit: Free the stringValueData buffer before using it again (Coverity)
Hugh McMaster
hugh.mcmaster at outlook.com
Thu Jun 15 06:58:54 CDT 2017
Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
---
programs/regedit/edit.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/programs/regedit/edit.c b/programs/regedit/edit.c
index fcf2a60..d88061c 100644
--- a/programs/regedit/edit.c
+++ b/programs/regedit/edit.c
@@ -378,6 +378,7 @@ BOOL ModifyValue(HWND hwnd, HKEY hKeyRoot, LPCWSTR keyPath, LPCWSTR valueName)
{
int index = SendMessageW(g_pChildWnd->hListWnd, LVM_GETNEXTITEM, -1,
MAKELPARAM(LVNI_FOCUSED | LVNI_SELECTED, 0));
+ HeapFree(GetProcessHeap(), 0, stringValueData);
stringValueData = read_value(hwnd, hKey, valueName, &type, &len);
format_value_data(g_pChildWnd->hListWnd, index, type, stringValueData, len);
}
--
2.7.4
More information about the wine-patches
mailing list