itss: remove redundant NULL check before free (found by Smatch).
Lionel Debroux
lionel_debroux at yahoo.fr
Sat Oct 20 02:32:38 CDT 2007
---
dlls/itss/chm_lib.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dlls/itss/chm_lib.c b/dlls/itss/chm_lib.c
index 788ec54..67954ac 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; 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;
--
1.5.3.2
--------------000308020403040502090901--
More information about the wine-patches
mailing list