]> git.saurik.com Git - apt.git/commitdiff
don't leak dpkg statusfd pipe in debugging
authorDavid Kalnischkies <david@kalnischkies.de>
Thu, 9 Jun 2016 21:18:10 +0000 (23:18 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Fri, 10 Jun 2016 08:49:41 +0000 (10:49 +0200)
Not a big deal to leak fds in debugging mode, but for completeness.

Git-Dch: Ignore

apt-pkg/deb/dpkgpm.cc

index b0237aa9adad648c96cfca875491c050ea51534b..d8e8388829aeb3e7bd2acbb851eedf978a3e945b 100644 (file)
@@ -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);