summaryrefslogtreecommitdiff
path: root/apt-pkg/algorithms.cc
diff options
context:
space:
mode:
authorMarius Vollmer <marius.vollmer@nokia.com>2012-05-15 21:17:08 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2012-05-15 21:17:08 +0200
commitb270388bef045df8c1b364338f545791bba222c1 (patch)
treed8804b1fc077057a82bbf02dcf4803024f758491 /apt-pkg/algorithms.cc
parent8221431757c775ee875a061b184b5f6f2330f928 (diff)
* apt-pkg/algorithms.cc:
- fix memory leak of Flags in pkgSimulate by a proper destructor
Diffstat (limited to 'apt-pkg/algorithms.cc')
-rw-r--r--apt-pkg/algorithms.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/apt-pkg/algorithms.cc b/apt-pkg/algorithms.cc
index e7b359981..2d710097a 100644
--- a/apt-pkg/algorithms.cc
+++ b/apt-pkg/algorithms.cc
@@ -58,6 +58,12 @@ pkgSimulate::pkgSimulate(pkgDepCache *Cache) : pkgPackageManager(Cache),
FileNames[I] = Jnk;
}
/*}}}*/
+// Simulate::~Simulate - Destructor /*{{{*/
+pkgSimulate::~pkgSimulate()
+{
+ delete[] Flags;
+}
+ /*}}}*/
// Simulate::Describe - Describe a package /*{{{*/
// ---------------------------------------------------------------------
/* Parameter Current == true displays the current package version,