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

Alexandre Julliard julliard at winehq.org
Mon Oct 22 09:55:18 CDT 2007


Module: wine
Branch: master
Commit: 6bca5f6fa086a06ab2bd1846d21d4bcb2d55d491
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6bca5f6fa086a06ab2bd1846d21d4bcb2d55d491

Author: Lionel Debroux <lionel_debroux at yahoo.fr>
Date:   Sat Oct 20 09:32:38 2007 +0200

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

---

 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;




More information about the wine-cvs mailing list