itss: Remove redundant NULL check before free (found by Smatch).

oldstable
Lionel Debroux 2007-10-20 09:32:38 +02:00 committed by Alexandre Julliard
parent 29ddd49130
commit 6bca5f6fa0
1 changed files with 1 additions and 2 deletions

View File

@ -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;