msvcrt heap test: fix memory leak (found by Smatch).
Lionel Debroux
lionel_debroux at yahoo.fr
Wed Nov 21 10:34:10 CST 2007
---
dlls/msvcrt/tests/heap.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/msvcrt/tests/heap.c b/dlls/msvcrt/tests/heap.c
index afea53f..2cd4fb2 100644
--- a/dlls/msvcrt/tests/heap.c
+++ b/dlls/msvcrt/tests/heap.c
@@ -342,6 +342,7 @@ START_TEST(heap)
mem = malloc(0);
ok(mem != NULL, "memory not allocated for size 0\n");
+ free(mem);
mem = realloc(NULL, 10);
ok(mem != NULL, "memory not allocated\n");
--
1.5.3.4
--0-23983584-1195662984=:27500--
More information about the wine-patches
mailing list