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:
parent
eada1be3a1
commit
3b9888efa3
|
@ -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++;
|
||||||
|
|
Loading…
Reference in New Issue