Michael Stefaniuc : msvcrt/tests: Remove redundant NULL check before free() . Found by Smatch.
Alexandre Julliard
julliard at winehq.org
Mon Nov 19 08:19:41 CST 2007
Module: wine
Branch: master
Commit: daf1ed48c3911bc41bad99cdfadaad0dfebce82e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=daf1ed48c3911bc41bad99cdfadaad0dfebce82e
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Sat Nov 17 19:15:10 2007 +0100
msvcrt/tests: Remove redundant NULL check before free(). Found by Smatch.
---
dlls/msvcrt/tests/heap.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dlls/msvcrt/tests/heap.c b/dlls/msvcrt/tests/heap.c
index e2e9a4a..afea53f 100644
--- a/dlls/msvcrt/tests/heap.c
+++ b/dlls/msvcrt/tests/heap.c
@@ -355,8 +355,7 @@ START_TEST(heap)
mem = realloc(NULL, 0);
ok(mem != NULL, "memory not (re)allocated for size 0\n");
- if (mem)
- free(mem);
+ free(mem);
test_aligned();
}
More information about the wine-cvs
mailing list