From d4d7c263cba6fc0e49ff6efd357f52c966c4816a Mon Sep 17 00:00:00 2001 From: Joris Huizer Date: Thu, 2 Dec 2010 22:52:41 +0100 Subject: [PATCH] msi: Don't leak memory on error path. --- dlls/msi/custom.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/msi/custom.c b/dlls/msi/custom.c index 391bf9af80f..6fa1038be1b 100644 --- a/dlls/msi/custom.c +++ b/dlls/msi/custom.c @@ -391,6 +391,7 @@ static MSIBINARY *create_temp_binary( MSIPACKAGE *package, LPCWSTR source, BOOL if (file == INVALID_HANDLE_VALUE) { msiobj_release( &row->hdr ); + msi_free( binary ); return NULL; } do