summaryrefslogtreecommitdiff
path: root/apt-pkg/aptconfiguration.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2010-03-03 21:29:01 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2010-03-03 21:29:01 +0100
commitcf0e078c440226e0009bb861486b974a03842f7b (patch)
tree8a07fa879fe960c6071c0355c28d0c21b569ef9a /apt-pkg/aptconfiguration.cc
parent5bdd31d56d4ae367f85195de327017c748ad7e89 (diff)
fix memory leak in getLanguages() by closing the directory after checking
Diffstat (limited to 'apt-pkg/aptconfiguration.cc')
-rw-r--r--apt-pkg/aptconfiguration.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/apt-pkg/aptconfiguration.cc b/apt-pkg/aptconfiguration.cc
index 10613f11d..f3f94dce3 100644
--- a/apt-pkg/aptconfiguration.cc
+++ b/apt-pkg/aptconfiguration.cc
@@ -152,6 +152,7 @@ std::vector<std::string> const Configuration::getLanguages(bool const &All,
builtin.push_back(c);
}
}
+ closedir(D);
// get the environment language codes: LC_MESSAGES (and later LANGUAGE)
// we extract both, a long and a short code and then we will