summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2016-06-09 23:18:10 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2016-06-10 10:49:41 +0200
commit7977ed047f967b3e4b4091181acce3eaf7bd8176 (patch)
tree73cac8d118fd08bc7706cb421f835c7d43f793ed
parent2202a8a05766586c60217d43193416dbd84be027 (diff)
don't leak dpkg statusfd pipe in debugging
Not a big deal to leak fds in debugging mode, but for completeness. Git-Dch: Ignore
-rw-r--r--apt-pkg/deb/dpkgpm.cc2
1 files changed, 2 insertions, 0 deletions
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);