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
6b966a88
Commit
6b966a88
authored
Nov 21, 2023
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Nov 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledb32/tests: Fix memory leaks.
parent
31707758
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
database.c
dlls/oledb32/tests/database.c
+14
-1
No files found.
dlls/oledb32/tests/database.c
View file @
6b966a88
...
...
@@ -47,6 +47,19 @@ static void _expect_ref(IUnknown* obj, ULONG ref, int line)
ok_
(
__FILE__
,
line
)(
rc
==
ref
,
"expected refcount %ld, got %ld
\n
"
,
ref
,
rc
);
}
static
void
free_dbpropinfoset
(
ULONG
count
,
DBPROPINFOSET
*
propinfoset
)
{
ULONG
i
,
j
;
for
(
i
=
0
;
i
<
count
;
i
++
)
{
for
(
j
=
0
;
j
<
propinfoset
[
i
].
cPropertyInfos
;
j
++
)
VariantClear
(
&
propinfoset
[
i
].
rgPropertyInfos
[
j
].
vValues
);
CoTaskMemFree
(
propinfoset
[
i
].
rgPropertyInfos
);
}
CoTaskMemFree
(
propinfoset
);
}
static
void
test_GetDataSource
(
const
WCHAR
*
initstring
)
{
IDataInitialize
*
datainit
=
NULL
;
...
...
@@ -90,7 +103,7 @@ static void test_GetDataSource(const WCHAR *initstring)
pInfoset
->
rgPropertyInfos
[
i
].
vtType
);
}
CoTaskMemFree
(
pInfoset
);
free_dbpropinfoset
(
cnt
,
pInfoset
);
CoTaskMemFree
(
ary
);
}
...
...
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