Lionel Debroux : msvcrt: Fix memory leak (found by Smatch).

Alexandre Julliard julliard at winehq.org
Mon Nov 26 08:16:22 CST 2007


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

Author: Lionel Debroux <lionel_debroux at yahoo.fr>
Date:   Wed Nov 21 17:34:10 2007 +0100

msvcrt: Fix memory leak (found by Smatch).

---

 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");




More information about the wine-cvs mailing list