diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2010-03-26 17:25:04 +0100 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2010-03-26 17:25:04 +0100 |
commit | 7a511e5d959f59ec6062a84b3a1ae372ff4f8e86 (patch) | |
tree | f21b8a92a2f285b429ba409a50f60505c5f51be7 /apt-pkg | |
parent | 1c56c17a3c5548a3bb86c0d7967c0f790c7c2cca (diff) |
* cmdline/apt-get.cc, apt-pkg/cdrom.cc:
- fix memory leaks in error conditions in DoSource()
Diffstat (limited to 'apt-pkg')
-rw-r--r-- | apt-pkg/cdrom.cc | 3 |
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();) { |