From: David Kalnischkies Date: Thu, 9 Jun 2016 21:18:10 +0000 (+0200) Subject: don't leak dpkg statusfd pipe in debugging X-Git-Tag: 1.3_exp2~2 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/7977ed047f967b3e4b4091181acce3eaf7bd8176 don't leak dpkg statusfd pipe in debugging Not a big deal to leak fds in debugging mode, but for completeness. Git-Dch: Ignore --- 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);