- fix couple of memory leaks in sqlite handler
authorPanu Matilainen <pmatilai@turre.koti.laiskiainen.org>
Tue, 27 Feb 2007 21:27:19 +0000 (23:27 +0200)
committerPanu Matilainen <pmatilai@turre.koti.laiskiainen.org>
Tue, 27 Feb 2007 21:27:19 +0000 (23:27 +0200)
apt-pkg/rpm/rpmhandler.cc

index 86d1081..b03044d 100644 (file)
@@ -1477,6 +1477,7 @@ RPMSqliteHandler::~RPMSqliteHandler()
    if (Primary) delete Primary;
    if (Filelists) delete Filelists;
    if (Other) delete Other;
+   if (Packages) delete Packages;
 }
 
 
@@ -1704,6 +1705,7 @@ bool RPMSqliteHandler::ChangeLog(vector<ChangeLogEntry* > &ChangeLogs)
       Entry->Text = Changes->GetCol("changelog");
       ChangeLogs.push_back(Entry);
    }
+   delete Changes;
    return true;
 }