]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/deb/debsystem.cc
* merged the auto-remove branch
[apt.git] / apt-pkg / deb / debsystem.cc
index 0b3a4f74293b8cb89e191ce819defd55fd95517a..2d805ea6f8b9a814292011909c650c34e8b174a2 100644 (file)
@@ -164,7 +164,12 @@ bool debSystem::Initialize(Configuration &Cnf)
    Cnf.CndSet("Dir::State::userstatus","status.user"); // Defunct
    Cnf.CndSet("Dir::State::status","/var/lib/dpkg/status");
    Cnf.CndSet("Dir::Bin::dpkg","/usr/bin/dpkg");
-   
+
+   if (StatusFile) {
+     delete StatusFile;
+     StatusFile = 0;
+   }
+
    return true;
 }
                                                                        /*}}}*/