diff --git a/programs/regedit/edit.c b/programs/regedit/edit.c index 403def433f9..2c47bdc03bf 100644 --- a/programs/regedit/edit.c +++ b/programs/regedit/edit.c @@ -165,6 +165,7 @@ static INT_PTR CALLBACK bin_modify_dlgproc(HWND hwndDlg, UINT uMsg, WPARAM wPara { SendDlgItemMessageW(hwndDlg, IDC_VALUE_DATA, HEM_GETDATA, (WPARAM)cbData, (LPARAM)pData); lRet = RegSetValueExW(params->hKey, params->lpszValueName, 0, REG_BINARY, pData, cbData); + HeapFree(GetProcessHeap(), 0, pData); } else lRet = ERROR_OUTOFMEMORY;