mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 06:10:39 +00:00
itss: Remove redundant NULL check before free (found by Smatch).
This commit is contained in:
parent
29ddd49130
commit
6bca5f6fa0
|
@ -854,8 +854,7 @@ void chm_close(struct chmFile *h)
|
|||
int i;
|
||||
for (i=0; i<h->cache_num_blocks; i++)
|
||||
{
|
||||
if (h->cache_blocks[i])
|
||||
HeapFree(GetProcessHeap(), 0, h->cache_blocks[i]);
|
||||
HeapFree(GetProcessHeap(), 0, h->cache_blocks[i]);
|
||||
}
|
||||
HeapFree(GetProcessHeap(), 0, h->cache_blocks);
|
||||
h->cache_blocks = NULL;
|
||||
|
|
Loading…
Reference in a new issue