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
1f90e886
Commit
1f90e886
authored
Dec 27, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Dec 27, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explorer: Fix memory leak when one or more properties are not present on a hal device.
parent
63a74c7d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
hal.c
programs/explorer/hal.c
+8
-6
No files found.
programs/explorer/hal.c
View file @
1f90e886
...
...
@@ -112,7 +112,10 @@ static WINE_EXCEPTION_FILTER(assert_fault)
static
void
new_device
(
LibHalContext
*
ctx
,
const
char
*
udi
)
{
DBusError
error
;
char
*
parent
,
*
mount_point
,
*
device
,
*
type
;
char
*
parent
=
NULL
;
char
*
mount_point
=
NULL
;
char
*
device
=
NULL
;
char
*
type
=
NULL
;
p_dbus_error_init
(
&
error
);
...
...
@@ -133,15 +136,14 @@ static void new_device( LibHalContext *ctx, const char *udi )
add_dos_device
(
udi
,
device
,
mount_point
,
type
);
if
(
type
)
p_libhal_free_string
(
type
);
p_libhal_free_string
(
parent
);
p_libhal_free_string
(
device
);
p_libhal_free_string
(
mount_point
);
/* add property watch for mount point */
p_libhal_device_add_property_watch
(
ctx
,
udi
,
&
error
);
done:
if
(
type
)
p_libhal_free_string
(
type
);
if
(
parent
)
p_libhal_free_string
(
parent
);
if
(
device
)
p_libhal_free_string
(
device
);
if
(
mount_point
)
p_libhal_free_string
(
mount_point
);
p_dbus_error_free
(
&
error
);
}
...
...
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