diff options
author | Stefan Bühler <stbuehler@web.de> | 2016-01-30 12:06:02 +0100 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2016-01-30 15:02:42 +0100 |
commit | ab16ead7f8e3824f5099558b9d559f6520a24570 (patch) | |
tree | c298184f5c1264d6c0534cf590d6694f4bd38c2b /apt-pkg/contrib | |
parent | 6fc2e03084c7e027c2b9a63c1fe99ff743aae3b6 (diff) |
fix "Mismatched free() / delete / delete []" in simple_buffer
Diffstat (limited to 'apt-pkg/contrib')
-rw-r--r-- | apt-pkg/contrib/fileutl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/contrib/fileutl.cc b/apt-pkg/contrib/fileutl.cc index a48447bea..4347c55ad 100644 --- a/apt-pkg/contrib/fileutl.cc +++ b/apt-pkg/contrib/fileutl.cc @@ -935,7 +935,7 @@ struct APT_HIDDEN simple_buffer { /*{{{*/ reset(4096); } ~simple_buffer() { - delete buffer; + delete[] buffer; } const char *get() const { return buffer + bufferstart; } |