[PATCH] quartz: Fix some memory leaks (Coverity).
Sven Baars
sven.wine at gmail.com
Fri Sep 6 10:29:49 CDT 2019
Signed-off-by: Sven Baars <sven.wine at gmail.com>
---
dlls/quartz/filesource.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dlls/quartz/filesource.c b/dlls/quartz/filesource.c
index 5e1880c84e..9d7aba14f8 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++;
--
2.17.1
More information about the wine-devel
mailing list