From 6bca5f6fa086a06ab2bd1846d21d4bcb2d55d491 Mon Sep 17 00:00:00 2001 From: Lionel Debroux Date: Sat, 20 Oct 2007 09:32:38 +0200 Subject: [PATCH] itss: Remove redundant NULL check before free (found by Smatch). --- dlls/itss/chm_lib.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/itss/chm_lib.c b/dlls/itss/chm_lib.c index 788ec54a6f9..67954ac894e 100644 --- a/dlls/itss/chm_lib.c +++ b/dlls/itss/chm_lib.c @@ -854,8 +854,7 @@ void chm_close(struct chmFile *h) int i; for (i=0; icache_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;