Bruno Jesus : userenv/tests: Fix a memory leak (valgrind).
Alexandre Julliard
julliard at winehq.org
Wed Jun 11 13:36:23 CDT 2014
Module: wine
Branch: master
Commit: 55f8233390a926b316c4a945436bc9296a5a090e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=55f8233390a926b316c4a945436bc9296a5a090e
Author: Bruno Jesus <00cpxxx at gmail.com>
Date: Thu May 29 23:16:09 2014 -0300
userenv/tests: Fix a memory leak (valgrind).
---
dlls/userenv/tests/userenv.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/userenv/tests/userenv.c b/dlls/userenv/tests/userenv.c
index b085d17..5647cf3 100644
--- a/dlls/userenv/tests/userenv.c
+++ b/dlls/userenv/tests/userenv.c
@@ -154,6 +154,7 @@ static void test_create_env(void)
r = get_env(env[i], "SystemRoot", &st);
ok(!strcmp(st, "SystemRoot=overwrite"), "%s\n", st);
expect(TRUE, r);
+ HeapFree(GetProcessHeap(), 0, st);
}
/* Test for common environment variables (NT4 and higher) */
More information about the wine-cvs
mailing list