quartz: Fix some memory leaks (Coverity).

Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sven Baars 2019-09-06 17:29:49 +02:00 committed by Alexandre Julliard
parent eada1be3a1
commit 3b9888efa3
1 changed files with 4 additions and 0 deletions

View File

@ -149,7 +149,11 @@ static BOOL process_pattern_string(const WCHAR *pattern, HANDLE file)
memset(mask, 0xff, size); memset(mask, 0xff, size);
if (!(pattern = wcschr(pattern, ','))) if (!(pattern = wcschr(pattern, ',')))
{
heap_free(mask);
heap_free(expect);
return FALSE; return FALSE;
}
pattern++; pattern++;
while (!iswxdigit(*pattern) && (*pattern != ',')) while (!iswxdigit(*pattern) && (*pattern != ','))
pattern++; pattern++;