Hans Leidekker : msi: Fix a memory leak.
Alexandre Julliard
julliard at winehq.org
Fri Feb 19 09:21:35 CST 2010
Module: wine
Branch: master
Commit: ddb20916235967b3ea29d3e8e0400e0cf0d5642d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ddb20916235967b3ea29d3e8e0400e0cf0d5642d
Author: Hans Leidekker <hans at codeweavers.com>
Date: Fri Feb 19 12:27:02 2010 +0100
msi: Fix a memory leak.
---
dlls/msi/streams.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/msi/streams.c b/dlls/msi/streams.c
index 8d2e748..28c3093 100644
--- a/dlls/msi/streams.c
+++ b/dlls/msi/streams.c
@@ -505,7 +505,10 @@ static INT add_streams_to_table(MSISTREAMSVIEW *sv)
break;
if (stat.type != STGTY_STREAM)
+ {
+ CoTaskMemFree(stat.pwcsName);
continue;
+ }
/* table streams are not in the _Streams table */
if (*stat.pwcsName == 0x4840)
More information about the wine-cvs
mailing list