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
18c51a9c
Commit
18c51a9c
authored
Jan 05, 2013
by
Marcus Meissner
Committed by
Alexandre Julliard
Jan 07, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledb32: Avoid leaking propsets on error paths (Coverity).
parent
3a29e876
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
datainit.c
dlls/oledb32/datainit.c
+3
-3
No files found.
dlls/oledb32/datainit.c
View file @
18c51a9c
...
...
@@ -293,11 +293,10 @@ static HRESULT set_dbpropset(BSTR name, BSTR value, DBPROPSET **propset)
{
static
const
WCHAR
datasourceW
[]
=
{
'D'
,
'a'
,
't'
,
'a'
,
' '
,
'S'
,
'o'
,
'u'
,
'r'
,
'c'
,
'e'
,
0
};
*
propset
=
CoTaskMemAlloc
(
sizeof
(
DBPROPSET
));
(
*
propset
)
->
rgProperties
=
CoTaskMemAlloc
(
sizeof
(
DBPROP
));
if
(
!
strcmpW
(
datasourceW
,
name
))
{
*
propset
=
CoTaskMemAlloc
(
sizeof
(
DBPROPSET
));
(
*
propset
)
->
rgProperties
=
CoTaskMemAlloc
(
sizeof
(
DBPROP
));
(
*
propset
)
->
cProperties
=
1
;
(
*
propset
)
->
guidPropertySet
=
DBPROPSET_DBINIT
;
(
*
propset
)
->
rgProperties
[
0
].
dwPropertyID
=
DBPROP_INIT_DATASOURCE
;
...
...
@@ -310,6 +309,7 @@ static HRESULT set_dbpropset(BSTR name, BSTR value, DBPROPSET **propset)
}
else
{
*
propset
=
NULL
;
FIXME
(
"unsupported property %s
\n
"
,
debugstr_w
(
name
));
return
E_FAIL
;
}
...
...
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