Michael Stefaniuc : ole32/tests: Fix a memleak on an error path (Smatch).

Alexandre Julliard julliard at winehq.org
Wed Oct 31 17:17:21 CDT 2012


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Tue Oct 30 23:15:44 2012 +0100

ole32/tests: Fix a memleak on an error path (Smatch).

---

 dlls/ole32/tests/propvariant.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/ole32/tests/propvariant.c b/dlls/ole32/tests/propvariant.c
index 769d49a..4d9a81b 100644
--- a/dlls/ole32/tests/propvariant.c
+++ b/dlls/ole32/tests/propvariant.c
@@ -445,6 +445,7 @@ static void test_varianttoproperty(void)
 
     if (len == 0xdeadbeef)
     {
+        HeapFree(GetProcessHeap(), 0, own_propvalue);
         return;
     }
 




More information about the wine-cvs mailing list