Module: wine Branch: refs/heads/master Commit: 525ceb7085b581e35f1bd32c98aff153745fa107 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=525ceb7085b581e35f1bd32c...
Author: Mike McCormack mike@codeweavers.com Date: Thu Jul 27 23:17:57 2006 +0900
msi: Fix some memory leaks.
---
dlls/msi/msi.c | 1 + dlls/msi/registry.c | 1 + 2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c index 8c9139d..84557d7 100644 --- a/dlls/msi/msi.c +++ b/dlls/msi/msi.c @@ -1440,6 +1440,7 @@ UINT WINAPI MSI_ProvideQualifiedComponen 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 e9c33f1..ddeb3a6 100644 --- a/dlls/msi/registry.c +++ b/dlls/msi/registry.c @@ -918,6 +918,7 @@ UINT WINAPI MSI_EnumComponentQualifiers( 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;