Commit d0cb2519 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

msi: Free rec in error exit (Coverity).

parent 39797dcf
...@@ -710,7 +710,10 @@ static UINT patch_add_media( MSIPACKAGE *package, IStorage *storage, MSIPATCHINF ...@@ -710,7 +710,10 @@ static UINT patch_add_media( MSIPACKAGE *package, IStorage *storage, MSIPATCHINF
msiobj_release( &rec->hdr ); msiobj_release( &rec->hdr );
continue; continue;
} }
if (!(media = msi_alloc( sizeof( *media )))) goto done; if (!(media = msi_alloc( sizeof( *media )))) {
msiobj_release( &rec->hdr );
goto done;
}
media->disk_id = disk_id; media->disk_id = disk_id;
media->last_sequence = MSI_RecordGetInteger( rec, 2 ); media->last_sequence = MSI_RecordGetInteger( rec, 2 );
media->prompt = msi_dup_record_field( rec, 3 ); media->prompt = msi_dup_record_field( rec, 3 );
......
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