summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2010-03-12 11:08:13 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2010-03-12 11:08:13 +0100
commit3a4477a4241bcfbc9db541cf34cc75c1f1111b78 (patch)
treedadb366f6a4e1e4d53afe01b62b7f8ac4b1b82fd /apt-pkg
parent6cd9fbd763298816e5d010703ceb9ffad0c235c9 (diff)
* cmdline/apt-get.cc
- fix memory leaks in error conditions in DoSource()
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/cdrom.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-pkg/cdrom.cc b/apt-pkg/cdrom.cc
index 96d4e9c91..783ffc430 100644
--- a/apt-pkg/cdrom.cc
+++ b/apt-pkg/cdrom.cc
@@ -289,7 +289,8 @@ bool pkgCdrom::DropRepeats(vector<string> &List,const char *Name)
List[J] = string();
}
}
-
+ delete[] Inodes;
+
// Wipe erased entries
for (unsigned int I = 0; I < List.size();)
{