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
63c5e152
Commit
63c5e152
authored
Dec 31, 2007
by
Rico Schüller
Committed by
Alexandre Julliard
Jan 07, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Fix memory leaks (found by Smatch).
parent
066ccd12
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
dialog.c
dlls/msi/dialog.c
+3
-0
source.c
dlls/msi/source.c
+7
-0
No files found.
dlls/msi/dialog.c
View file @
63c5e152
...
...
@@ -2268,7 +2268,10 @@ static UINT msi_dialog_list_box( msi_dialog *dialog, MSIRECORD *rec )
control
=
msi_dialog_add_control
(
dialog
,
rec
,
WC_LISTBOXW
,
style
);
if
(
!
control
)
{
msi_free
(
info
);
return
ERROR_FUNCTION_FAILED
;
}
control
->
handler
=
msi_dialog_listbox_handler
;
...
...
dlls/msi/source.c
View file @
63c5e152
...
...
@@ -605,7 +605,10 @@ static UINT fill_source_list(struct list *sourcelist, HKEY sourcekey, DWORD *cou
entry
->
path
=
msi_alloc
(
val_size
);
if
(
!
entry
->
path
)
{
msi_free
(
entry
);
goto
error
;
}
lstrcpyW
(
entry
->
szIndex
,
name
);
entry
->
index
=
atoiW
(
name
);
...
...
@@ -614,7 +617,11 @@ static UINT fill_source_list(struct list *sourcelist, HKEY sourcekey, DWORD *cou
r
=
RegEnumValueW
(
sourcekey
,
index
,
name
,
&
size
,
NULL
,
NULL
,
(
LPBYTE
)
entry
->
path
,
&
val_size
);
if
(
r
!=
ERROR_SUCCESS
)
{
msi_free
(
entry
->
path
);
msi_free
(
entry
);
goto
error
;
}
index
=
++
(
*
count
);
add_source_to_list
(
sourcelist
,
entry
);
...
...
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