diff options
author | Julian Andres Klode <jak@debian.org> | 2009-06-12 19:07:40 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2009-06-12 19:07:40 +0200 |
commit | 8aea8c3f51ce84ed8d6d89682c0a989ac99c4796 (patch) | |
tree | dd355c80d8395b8a46adbaf0802eafe9bbbadf2c /apt-pkg/contrib/configuration.cc | |
parent | 81e9789b12374073e848c73c79e235f82c14df44 (diff) |
apt-pkg/contrib/configuration.cc: Fix a small memory leak in
ReadConfigFile.
Diffstat (limited to 'apt-pkg/contrib/configuration.cc')
-rw-r--r-- | apt-pkg/contrib/configuration.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apt-pkg/contrib/configuration.cc b/apt-pkg/contrib/configuration.cc index 80584d3ea..48a5f0bff 100644 --- a/apt-pkg/contrib/configuration.cc +++ b/apt-pkg/contrib/configuration.cc @@ -521,6 +521,7 @@ bool ReadConfigFile(Configuration &Conf,const string &FName,bool AsSectional, F.getline(Buffer,sizeof(Buffer) / 2); Input += Buffer; + delete[] Buffer; } while (F.fail() && !F.eof()); |