Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
cacd1c44
Commit
cacd1c44
authored
Apr 15, 2008
by
Dan Hipschman
Committed by
Alexandre Julliard
Apr 16, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qmgr/tests: Fix minor potential memory leaks.
parent
a73ab629
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
enum_jobs.c
dlls/qmgr/tests/enum_jobs.c
+3
-0
job.c
dlls/qmgr/tests/job.c
+6
-0
No files found.
dlls/qmgr/tests/enum_jobs.c
View file @
cacd1c44
...
...
@@ -209,6 +209,7 @@ static void test_Next_walkList_2(void)
if
(
hres
!=
S_OK
)
{
skip
(
"Unable to get file from test_enumJobs
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
jobs
);
return
;
}
ok
(
fetched
==
test_jobCountB
,
"Next returned the incorrect number of jobs: %08x
\n
"
,
hres
);
...
...
@@ -219,6 +220,8 @@ static void test_Next_walkList_2(void)
if
(
jobs
[
i
])
IBackgroundCopyFile_Release
(
jobs
[
i
]);
}
HeapFree
(
GetProcessHeap
(),
0
,
jobs
);
}
/* Test Next Error conditions */
...
...
dlls/qmgr/tests/job.c
View file @
cacd1c44
...
...
@@ -416,6 +416,8 @@ static void test_CompleteLocalURL(void)
if
(
!
urlA
||
!
urlB
)
{
skip
(
"Unable to allocate memory for URLs
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
urlA
);
HeapFree
(
GetProcessHeap
(),
0
,
urlB
);
return
;
}
...
...
@@ -428,6 +430,8 @@ static void test_CompleteLocalURL(void)
if
(
hres
!=
S_OK
)
{
skip
(
"Unable to add file to job
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
urlA
);
HeapFree
(
GetProcessHeap
(),
0
,
urlB
);
return
;
}
...
...
@@ -435,6 +439,8 @@ static void test_CompleteLocalURL(void)
if
(
hres
!=
S_OK
)
{
skip
(
"Unable to add file to job
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
urlA
);
HeapFree
(
GetProcessHeap
(),
0
,
urlB
);
return
;
}
...
...
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