Nikolay Sivov : msi: Fix a stream data leak on error (Coverity).

Alexandre Julliard julliard at winehq.org
Mon Dec 10 14:00:38 CST 2012


Module: wine
Branch: master
Commit: af5e73572a15e28d1a7204a142464a5ef5246987
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=af5e73572a15e28d1a7204a142464a5ef5246987

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Sat Dec  8 16:08:57 2012 +0400

msi: Fix a stream data leak on error (Coverity).

---

 dlls/msi/streams.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/msi/streams.c b/dlls/msi/streams.c
index d9d632f..a20f196 100644
--- a/dlls/msi/streams.c
+++ b/dlls/msi/streams.c
@@ -200,6 +200,7 @@ static UINT STREAMS_set_row(struct tagMSIVIEW *view, UINT row, MSIRECORD *rec, U
     if (FAILED(hr))
     {
         WARN("failed to open stream: %08x\n", hr);
+        msi_free(stream);
         goto done;
     }
 




More information about the wine-cvs mailing list