msi: Free the current filename if we choose to not extract the file.
This commit is contained in:
parent
6a7fc50708
commit
d9c52bfa70
|
@ -334,7 +334,12 @@ static INT_PTR cabinet_copy_file(FDINOTIFICATIONTYPE fdint,
|
|||
data->curfile = strdupAtoW(pfdin->psz1);
|
||||
if (!data->cb(data->package, data->curfile, MSICABEXTRACT_BEGINEXTRACT, &path,
|
||||
&attrs, data->user))
|
||||
{
|
||||
/* We're not extracting this file, so free the filename. */
|
||||
msi_free(data->curfile);
|
||||
data->curfile = NULL;
|
||||
goto done;
|
||||
}
|
||||
|
||||
TRACE("extracting %s\n", debugstr_w(path));
|
||||
|
||||
|
|
Loading…
Reference in New Issue