Module: wine Branch: master Commit: 68b1f2cde2727e381f41724d5348f9fc413b1425 URL: http://source.winehq.org/git/wine.git/?a=commit;h=68b1f2cde2727e381f41724d53...
Author: Lionel Debroux lionel_debroux@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");