Sven Baars : quartz: Fix some memory leaks (Coverity).

Alexandre Julliard julliard at winehq.org
Fri Sep 6 16:05:43 CDT 2019


Module: wine
Branch: master
Commit: 3b9888efa34f15e09e71f80fb6c6b76b98409fd2
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=3b9888efa34f15e09e71f80fb6c6b76b98409fd2

Author: Sven Baars <sven.wine at gmail.com>
Date:   Fri Sep  6 17:29:49 2019 +0200

quartz: Fix some memory leaks (Coverity).

Signed-off-by: Sven Baars <sven.wine at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/quartz/filesource.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dlls/quartz/filesource.c b/dlls/quartz/filesource.c
index f907401..7738500 100644
--- a/dlls/quartz/filesource.c
+++ b/dlls/quartz/filesource.c
@@ -149,7 +149,11 @@ static BOOL process_pattern_string(const WCHAR *pattern, HANDLE file)
     memset(mask, 0xff, size);
 
     if (!(pattern = wcschr(pattern, ',')))
+    {
+        heap_free(mask);
+        heap_free(expect);
         return FALSE;
+    }
     pattern++;
     while (!iswxdigit(*pattern) && (*pattern != ','))
         pattern++;




More information about the wine-cvs mailing list