Hans Leidekker : msi: Fix a memory leak.
Module: wine Branch: master Commit: ddb20916235967b3ea29d3e8e0400e0cf0d5642d URL: http://source.winehq.org/git/wine.git/?a=commit;h=ddb20916235967b3ea29d3e8e0... Author: Hans Leidekker <hans(a)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)
participants (1)
-
Alexandre Julliard