From 252ed4c1ae94dcb74cdade5dd3bbe4c3b8caccff Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Thu, 26 Oct 2017 07:27:47 -0400 Subject: [PATCH] Fix clang warning --- include/verilated.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/verilated.cpp b/include/verilated.cpp index d336765a7..4c3b7afde 100644 --- a/include/verilated.cpp +++ b/include/verilated.cpp @@ -109,7 +109,7 @@ std::string _vl_string_vprintf(const char* formatp, va_list ap) { char* bufp = new char[len+1]; VL_VSNPRINTF(bufp, len+1, formatp, ap); std::string out = std::string(bufp, len); - delete bufp; + delete[] bufp; return out; }