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

oldstable
Nikolay Sivov 2014-04-10 09:19:11 +04:00 committed by Alexandre Julliard
parent 4f681295d6
commit 0bcf4a5bb6
1 changed files with 1 additions and 1 deletions

View File

@ -735,10 +735,10 @@ static UINT replace_stack(FORMAT *format, STACK *stack, STACK *values)
format->n = n;
beg = format_replace( format, propfound, nonprop, oldsize, type, replaced, len );
msi_free(replaced);
if (!beg)
return ERROR_SUCCESS;
msi_free(replaced);
format->n = beg->n + beg->len;
top = stack_peek(stack);