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
3804423f
Commit
3804423f
authored
May 04, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 05, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledb32: Fix IDBInitialize instance leak on error path (Valgrind).
parent
c7f12626
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
datainit.c
dlls/oledb32/datainit.c
+4
-4
No files found.
dlls/oledb32/datainit.c
View file @
3804423f
...
...
@@ -205,7 +205,7 @@ static const IDBInitializeVtbl dbinit_vtbl =
dbinit_Uninitialize
};
static
HRESULT
create_db_init
(
void
**
obj
)
static
HRESULT
create_db_init
(
IUnknown
**
obj
)
{
dbinit
*
This
;
...
...
@@ -220,7 +220,7 @@ static HRESULT create_db_init(void **obj)
This
->
IDBProperties_iface
.
lpVtbl
=
&
dbprops_vtbl
;
This
->
ref
=
1
;
*
obj
=
&
This
->
IDBInitialize_iface
;
*
obj
=
(
IUnknown
*
)
&
This
->
IDBInitialize_iface
;
return
S_OK
;
}
...
...
@@ -512,7 +512,7 @@ static HRESULT WINAPI datainit_GetDataSource(IDataInitialize *iface, IUnknown *o
hr
=
CoCreateInstance
(
&
provclsid
,
outer
,
clsctx
,
riid
,
(
void
**
)
datasource
);
if
(
FAILED
(
hr
)
&&
IsEqualIID
(
riid
,
&
IID_IDBInitialize
))
hr
=
create_db_init
(
(
void
**
)
datasource
);
hr
=
create_db_init
(
datasource
);
}
/* now set properties */
...
...
@@ -555,7 +555,7 @@ static HRESULT WINAPI datainit_GetDataSource(IDataInitialize *iface, IUnknown *o
hr
=
set_dbpropset
(
name
,
value
,
&
propset
);
SysFreeString
(
name
);
SysFreeString
(
value
);
if
(
FAILED
(
hr
))
return
hr
;
if
(
FAILED
(
hr
))
break
;
hr
=
IDBProperties_SetProperties
(
dbprops
,
1
,
propset
);
free_dbpropset
(
1
,
propset
);
...
...
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