Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
952cd1d3
Commit
952cd1d3
authored
Dec 07, 2009
by
Hans Leidekker
Committed by
Alexandre Julliard
Dec 07, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userenv/tests: Fix some memory leaks.
Found by Valgrind.
parent
7d3f37fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
userenv.c
dlls/userenv/tests/userenv.c
+8
-0
No files found.
dlls/userenv/tests/userenv.c
View file @
952cd1d3
...
...
@@ -145,6 +145,7 @@ static void test_create_env(void)
todo_wine
expect_env
(
TRUE
,
r
,
common_vars
[
i
].
name
);
else
expect_env
(
TRUE
,
r
,
common_vars
[
i
].
name
);
if
(
r
)
HeapFree
(
GetProcessHeap
(),
0
,
st
);
}
}
...
...
@@ -164,6 +165,7 @@ static void test_create_env(void)
todo_wine
expect_env
(
TRUE
,
r
,
common_post_nt4_vars
[
i
].
name
);
else
expect_env
(
TRUE
,
r
,
common_post_nt4_vars
[
i
].
name
);
if
(
r
)
HeapFree
(
GetProcessHeap
(),
0
,
st
);
}
}
}
...
...
@@ -178,17 +180,23 @@ static void test_create_env(void)
todo_wine
expect_env
(
TRUE
,
r
,
htok_vars
[
i
].
name
);
else
expect_env
(
TRUE
,
r
,
htok_vars
[
i
].
name
);
if
(
r
)
HeapFree
(
GetProcessHeap
(),
0
,
st
);
}
}
r
=
get_env
(
env
[
0
],
"WINE_XYZZY"
,
&
st
);
expect
(
FALSE
,
r
);
r
=
get_env
(
env
[
1
],
"WINE_XYZZY"
,
&
st
);
expect
(
FALSE
,
r
);
r
=
get_env
(
env
[
2
],
"WINE_XYZZY"
,
&
st
);
expect
(
TRUE
,
r
);
if
(
r
)
HeapFree
(
GetProcessHeap
(),
0
,
st
);
r
=
get_env
(
env
[
3
],
"WINE_XYZZY"
,
&
st
);
expect
(
TRUE
,
r
);
if
(
r
)
HeapFree
(
GetProcessHeap
(),
0
,
st
);
}
START_TEST
(
userenv
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment