diff --git a/programs/msiexec/msiexec.c b/programs/msiexec/msiexec.c index 71e81c89add..bdb1b90817a 100644 --- a/programs/msiexec/msiexec.c +++ b/programs/msiexec/msiexec.c @@ -487,6 +487,7 @@ static BOOL process_args_from_reg( LPWSTR ident, int *pargc, WCHAR ***pargv ) process_args(buf, pargc, pargv); ret = TRUE; } + HeapFree(GetProcessHeap(), 0, buf); } RegCloseKey(hkeyArgs); return ret;