From ab16ead7f8e3824f5099558b9d559f6520a24570 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Sat, 30 Jan 2016 12:06:02 +0100 Subject: fix "Mismatched free() / delete / delete []" in simple_buffer --- apt-pkg/contrib/fileutl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3