Commit 0bcf4a5b authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

msi: Fix a leak on error path (Coverity).

parent 4f681295
...@@ -735,10 +735,10 @@ static UINT replace_stack(FORMAT *format, STACK *stack, STACK *values) ...@@ -735,10 +735,10 @@ static UINT replace_stack(FORMAT *format, STACK *stack, STACK *values)
format->n = n; format->n = n;
beg = format_replace( format, propfound, nonprop, oldsize, type, replaced, len ); beg = format_replace( format, propfound, nonprop, oldsize, type, replaced, len );
msi_free(replaced);
if (!beg) if (!beg)
return ERROR_SUCCESS; return ERROR_SUCCESS;
msi_free(replaced);
format->n = beg->n + beg->len; format->n = beg->n + beg->len;
top = stack_peek(stack); top = stack_peek(stack);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment