On Thu, Nov 17, 2016, Jeremy White <jwhite(a)codeweavers.com> wrote:
> +static void add_argument(char **argv, int *argc, const char *arg, const char *param)
> +{
> + argv[(*argc)] = HeapAlloc(GetProcessHeap(), 0, strlen(arg) + 1);
> + strcpy(argv[(*argc)++], arg);
> + if (param)
> + {
> + argv[(*argc)] = HeapAlloc(GetProcessHeap(), 0, strlen(param) + 1);
> + strcpy(argv[(*argc)++], param);
> + }
> +}
It looks like a memory leak.