Marcus Meissner : msi: Free rec in error exit (Coverity).
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Jun 12 07:36:12 CDT 2015
Module: wine
Branch: master
Commit: d0cb2519b666fda68515f65662d72b39f6a1f455
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d0cb2519b666fda68515f65662d72b39f6a1f455
Author: Marcus Meissner <marcus at jet.franken.de>
Date: Thu Jun 11 16:57:34 2015 +0200
msi: Free rec in error exit (Coverity).
---
dlls/msi/patch.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dlls/msi/patch.c b/dlls/msi/patch.c
index 5456359..f8f3eaf 100644
--- a/dlls/msi/patch.c
+++ b/dlls/msi/patch.c
@@ -710,7 +710,10 @@ static UINT patch_add_media( MSIPACKAGE *package, IStorage *storage, MSIPATCHINF
msiobj_release( &rec->hdr );
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->last_sequence = MSI_RecordGetInteger( rec, 2 );
media->prompt = msi_dup_record_field( rec, 3 );
More information about the wine-cvs
mailing list