From c18b33a9e9e6cb691a345e4793999c5bec552305 Mon Sep 17 00:00:00 2001 From: Sviatoslav Chagaev Date: Tue, 10 Sep 2013 18:23:53 +0300 Subject: [PATCH] Fix a file descriptor leak. Fix a file descriptor not being closed when an error codepath is taken. --- dbus/dbus-sysdeps-util-unix.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dbus/dbus-sysdeps-util-unix.c b/dbus/dbus-sysdeps-util-unix.c index 6cff3fe..bbc3f34 100644 --- a/dbus/dbus-sysdeps-util-unix.c +++ b/dbus/dbus-sysdeps-util-unix.c @@ -1144,6 +1144,7 @@ _dbus_command_for_pid (unsigned long pid, "Failed to read from \"%s\": %s", _dbus_string_get_const_data (&path), _dbus_strerror (errno)); + _dbus_close (fd, NULL); goto fail; } -- 1.8.3.1