summaryrefslogtreecommitdiff
path: root/tools/dbus-launch.c
diff options
context:
space:
mode:
authorMichel HERMIER <hermier@frugalware.org>2012-11-09 15:44:43 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2012-11-09 16:17:17 +0000
commitd989aa520b856a8558682bc4051ef213d0f8d43a (patch)
treec62c7c6ff5903282d239ccc089300946c9d7127d /tools/dbus-launch.c
parent03719b6ba4ff8b2a0fbbae25168dafc44a711682 (diff)
Don't leak temporary fds pointing to /dev/null
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=56927 [commit message added -smcv] Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Diffstat (limited to 'tools/dbus-launch.c')
-rw-r--r--tools/dbus-launch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/dbus-launch.c b/tools/dbus-launch.c
index bbaac2c3..bb639a11 100644
--- a/tools/dbus-launch.c
+++ b/tools/dbus-launch.c
@@ -583,6 +583,7 @@ babysit (int exit_with_session,
s = getenv ("DBUS_DEBUG_OUTPUT");
if (s == NULL || *s == '\0')
dup2 (dev_null_fd, 2);
+ close (dev_null_fd);
}
else
{