From 08e47001f1986b81976ef8d3d5d73857661b4229 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Mon, 27 Jun 2016 13:38:49 -0700 Subject: [PATCH] Silence mismatched delete warning in spec helper --- spec/helpers/spy_input.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/helpers/spy_input.cc b/spec/helpers/spy_input.cc index 1c0fa0a4..3968bcc2 100644 --- a/spec/helpers/spy_input.cc +++ b/spec/helpers/spy_input.cc @@ -18,7 +18,7 @@ SpyInput::SpyInput(string content, size_t chars_per_chunk) : strings_read({""}) {} SpyInput::~SpyInput() { - delete buffer; + delete[] buffer; } const char * SpyInput::read(void *payload, size_t *bytes_read) {