]> git.saurik.com Git - apt.git/commitdiff
* apt-pkg/algorithms.cc:
authorMarius Vollmer <marius.vollmer@nokia.com>
Tue, 15 May 2012 19:17:08 +0000 (21:17 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Tue, 15 May 2012 19:17:08 +0000 (21:17 +0200)
  - fix memory leak of Flags in pkgSimulate by a proper destructor

apt-pkg/algorithms.cc
apt-pkg/algorithms.h
debian/changelog

index e7b35998140929b4589218cf3838cb7ae91815a0..2d710097ad608d6e43b7f079fea16ddef1e2bdf3 100644 (file)
@@ -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,
index 076542c20c6fdbdccfbfdc4406a8a6756e5e63c7..aff8a68f2ce1a2691660bfd35db5bc29b01e795c 100644 (file)
@@ -78,6 +78,7 @@ private:
    public:
 
    pkgSimulate(pkgDepCache *Cache);
+   ~pkgSimulate();
 };
                                                                        /*}}}*/
 class pkgProblemResolver                                               /*{{{*/
index dd8ca72cd8d96128201338bc547f0d52f10a1caa..e451bf755d4908d5104f65a6fc1b1096a782b5a8 100644 (file)
@@ -32,6 +32,10 @@ apt (0.9.4) UNRELEASED; urgency=low
     - generate an equal sign also for the first arch (Closes: #669142)
 
 
+  [ Marius Vollmer ]
+  * apt-pkg/algorithms.cc:
+    - fix memory leak of Flags in pkgSimulate by a proper destructor
+
  -- David Kalnischkies <kalnischkies@gmail.com>  Fri, 11 May 2012 23:26:59 +0200
 
 apt (0.9.3) unstable; urgency=low