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
f9dc20cf
Commit
f9dc20cf
authored
Jul 15, 2015
by
Hans Leidekker
Committed by
Alexandre Julliard
Jul 15, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Fix a couple of memory leaks (Coverity).
parent
17405f6b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
table.c
dlls/msi/table.c
+7
-6
No files found.
dlls/msi/table.c
View file @
f9dc20cf
...
...
@@ -809,7 +809,7 @@ UINT msi_create_table( MSIDATABASE *db, LPCWSTR name, column_info *col_info,
/* add each column to the _Columns table */
r
=
TABLE_CreateView
(
db
,
szColumns
,
&
tv
);
if
(
r
)
return
r
;
goto
er
r
;
r
=
tv
->
ops
->
execute
(
tv
,
0
);
TRACE
(
"tv execute returned %x
\n
"
,
r
);
...
...
@@ -2325,8 +2325,7 @@ err:
}
static
MSIRECORD
*
msi_get_transform_record
(
const
MSITABLEVIEW
*
tv
,
const
string_table
*
st
,
IStorage
*
stg
,
const
BYTE
*
rawdata
,
UINT
bytes_per_strref
)
IStorage
*
stg
,
const
BYTE
*
rawdata
,
UINT
bytes_per_strref
)
{
UINT
i
,
val
,
ofs
=
0
;
USHORT
mask
;
...
...
@@ -2359,12 +2358,14 @@ static MSIRECORD *msi_get_transform_record( const MSITABLEVIEW *tv, const string
r
=
msi_record_encoded_stream_name
(
tv
,
rec
,
&
encname
);
if
(
r
!=
ERROR_SUCCESS
)
{
msiobj_release
(
&
rec
->
hdr
);
return
NULL
;
r
=
IStorage_OpenStream
(
stg
,
encname
,
NULL
,
STGM_READ
|
STGM_SHARE_EXCLUSIVE
,
0
,
&
stm
);
}
r
=
IStorage_OpenStream
(
stg
,
encname
,
NULL
,
STGM_READ
|
STGM_SHARE_EXCLUSIVE
,
0
,
&
stm
);
if
(
r
!=
ERROR_SUCCESS
)
{
msiobj_release
(
&
rec
->
hdr
);
msi_free
(
encname
);
return
NULL
;
}
...
...
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