Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
85bf1082
Commit
85bf1082
authored
Nov 07, 2012
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Nov 07, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Fix some leaks (coverity).
parent
82c97d95
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
2 deletions
+12
-2
msi.c
dlls/msi/msi.c
+3
-0
package.c
dlls/msi/package.c
+4
-2
source.c
dlls/msi/source.c
+3
-0
where.c
dlls/msi/where.c
+2
-0
No files found.
dlls/msi/msi.c
View file @
85bf1082
...
...
@@ -2215,7 +2215,10 @@ UINT WINAPI MsiQueryComponentStateW(LPCWSTR szProductCode,
if
(
!
(
val
=
msi_alloc
(
sz
)))
return
ERROR_OUTOFMEMORY
;
if
((
r
=
msi_comp_find_prodcode
(
squished_pc
,
dwContext
,
szComponent
,
val
,
&
sz
)))
{
msi_free
(
val
);
return
r
;
}
if
(
lstrlenW
(
val
)
>
2
&&
val
[
0
]
>=
'0'
&&
val
[
0
]
<=
'9'
&&
val
[
1
]
>=
'0'
&&
val
[
1
]
<=
'9'
&&
val
[
2
]
!=
':'
)
...
...
dlls/msi/package.c
View file @
85bf1082
...
...
@@ -638,10 +638,12 @@ static void set_msi_assembly_prop(MSIPACKAGE *package)
return
;
size
=
GetFileVersionInfoSizeW
(
fusion
,
&
handle
);
if
(
!
size
)
return
;
if
(
!
size
)
goto
done
;
version
=
msi_alloc
(
size
);
if
(
!
version
)
return
;
if
(
!
version
)
goto
done
;
if
(
!
GetFileVersionInfoW
(
fusion
,
handle
,
size
,
version
))
goto
done
;
...
...
dlls/msi/source.c
View file @
85bf1082
...
...
@@ -763,7 +763,10 @@ UINT msi_set_last_used_source(LPCWSTR product, LPCWSTR usersid,
r
=
OpenSourceKey
(
product
,
&
source
,
MSICODE_PRODUCT
,
context
,
FALSE
);
if
(
r
!=
ERROR_SUCCESS
)
{
msi_free
(
buffer
);
return
r
;
}
sprintfW
(
buffer
,
format
,
typechar
,
index
,
value
);
...
...
dlls/msi/where.c
View file @
85bf1082
...
...
@@ -1253,6 +1253,8 @@ UINT WHERE_CreateView( MSIDATABASE *db, MSIVIEW **view, LPWSTR tables,
if
(
r
!=
ERROR_SUCCESS
)
{
ERR
(
"can't get table dimensions
\n
"
);
table
->
view
->
ops
->
delete
(
table
->
view
);
msi_free
(
table
);
goto
end
;
}
...
...
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