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
58bbe5ac
Commit
58bbe5ac
authored
Mar 31, 2013
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 01, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Free records on error paths (Coverity).
parent
3f3404d2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
database.c
dlls/msi/database.c
+6
-0
dialog.c
dlls/msi/dialog.c
+1
-0
No files found.
dlls/msi/database.c
View file @
58bbe5ac
...
...
@@ -1376,7 +1376,10 @@ static UINT merge_verify_colnames(MSIQUERY *dbview, MSIQUERY *mergeview)
r
=
MSI_ViewGetColumnInfo
(
mergeview
,
MSICOLINFO_NAMES
,
&
mergerec
);
if
(
r
!=
ERROR_SUCCESS
)
{
msiobj_release
(
&
dbrec
->
hdr
);
return
r
;
}
count
=
MSI_RecordGetFieldCount
(
dbrec
);
for
(
i
=
1
;
i
<=
count
;
i
++
)
...
...
@@ -1401,7 +1404,10 @@ static UINT merge_verify_colnames(MSIQUERY *dbview, MSIQUERY *mergeview)
r
=
MSI_ViewGetColumnInfo
(
mergeview
,
MSICOLINFO_TYPES
,
&
mergerec
);
if
(
r
!=
ERROR_SUCCESS
)
{
msiobj_release
(
&
dbrec
->
hdr
);
return
r
;
}
count
=
MSI_RecordGetFieldCount
(
dbrec
);
for
(
i
=
1
;
i
<=
count
;
i
++
)
...
...
dlls/msi/dialog.c
View file @
58bbe5ac
...
...
@@ -3552,6 +3552,7 @@ static LRESULT msi_dialog_oncreate( HWND hwnd, LPCREATESTRUCTW cs )
if
(
!
dialog
->
default_font
)
{
dialog
->
default_font
=
strdupW
(
dfv
);
msiobj_release
(
&
rec
->
hdr
);
if
(
!
dialog
->
default_font
)
return
-
1
;
}
...
...
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