From 7977ed047f967b3e4b4091181acce3eaf7bd8176 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Thu, 9 Jun 2016 23:18:10 +0200 Subject: don't leak dpkg statusfd pipe in debugging Not a big deal to leak fds in debugging mode, but for completeness. Git-Dch: Ignore --- apt-pkg/deb/dpkgpm.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apt-pkg') diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index b0237aa9a..d8e838882 100644 --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@ -1406,6 +1406,8 @@ bool pkgDPkgPM::Go(APT::Progress::PackageManager *progress) p != Packages.end(); ++p) free(*p); Packages.clear(); + close(fd[0]); + close(fd[1]); continue; } Args.push_back(NULL); -- cgit v1.2.3