Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
67aa058b
Commit
67aa058b
authored
Aug 16, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbus: fix file descriptors leak
parent
078317de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
modules/control/dbus/dbus.c
modules/control/dbus/dbus.c
+6
-0
No files found.
modules/control/dbus/dbus.c
View file @
67aa058b
...
...
@@ -193,6 +193,8 @@ static int Open( vlc_object_t *p_this )
msg_Err
(
p_this
,
"Failed to connect to the D-Bus session daemon: %s"
,
error
.
message
);
dbus_error_free
(
&
error
);
close
(
p_sys
->
p_pipe_fds
[
1
]
);
close
(
p_sys
->
p_pipe_fds
[
0
]
);
free
(
p_sys
);
return
VLC_EGENERIC
;
}
...
...
@@ -289,6 +291,8 @@ error:
vlc_mutex_destroy
(
&
p_sys
->
lock
);
close
(
p_sys
->
p_pipe_fds
[
1
]
);
close
(
p_sys
->
p_pipe_fds
[
0
]
);
free
(
p_sys
);
return
VLC_ENOMEM
;
}
...
...
@@ -340,6 +344,8 @@ static void Close ( vlc_object_t *p_this )
vlc_array_destroy
(
p_sys
->
p_events
);
vlc_array_destroy
(
p_sys
->
p_timeouts
);
vlc_array_destroy
(
p_sys
->
p_watches
);
close
(
p_sys
->
p_pipe_fds
[
1
]
);
close
(
p_sys
->
p_pipe_fds
[
0
]
);
free
(
p_sys
);
}
...
...
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