From 226d95135ccb49de2427a38256212b5020a090d1 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Thu, 23 Oct 2014 22:17:39 +0200 Subject: [PATCH] [VALGRIND] delete error --- ejson/ejson.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ejson/ejson.cpp b/ejson/ejson.cpp index 36de6fa..c9db86e 100644 --- a/ejson/ejson.cpp +++ b/ejson/ejson.cpp @@ -84,7 +84,7 @@ bool ejson::Document::load(const std::string& _file) { std::string tmpDataUnicode(fileBuffer); // remove temporary buffer: - delete(fileBuffer); + delete[] fileBuffer; // parse the data : bool ret = parse(tmpDataUnicode); //Display();