From 525ceb7085b581e35f1bd32c98aff153745fa107 Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Thu, 27 Jul 2006 23:17:57 +0900 Subject: [PATCH] msi: Fix some memory leaks. --- dlls/msi/msi.c | 1 + dlls/msi/registry.c | 1 + 2 files changed, 2 insertions(+) diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c index 8c9139dd6c6..84557d7f106 100644 --- a/dlls/msi/msi.c +++ b/dlls/msi/msi.c @@ -1440,6 +1440,7 @@ UINT WINAPI MSI_ProvideQualifiedComponentEx(LPCWSTR szComponent, else rc = MSI_GetComponentPath(szProduct, component, lpPathBuf, pcchPathBuf); + msi_free( info ); if (rc != INSTALLSTATE_LOCAL) return ERROR_FILE_NOT_FOUND; diff --git a/dlls/msi/registry.c b/dlls/msi/registry.c index e9c33f1f9ad..ddeb3a60ac0 100644 --- a/dlls/msi/registry.c +++ b/dlls/msi/registry.c @@ -918,6 +918,7 @@ UINT WINAPI MSI_EnumComponentQualifiers( LPCWSTR szComponent, DWORD iIndex, if (val_sz > val_max) { val_max = val_sz + sizeof (WCHAR); + msi_free( val ); val = msi_alloc( val_max * sizeof (WCHAR) ); if (!val) goto end;