summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/Preprocessor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Slice/Preprocessor.cpp')
-rwxr-xr-xcpp/src/Slice/Preprocessor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/Slice/Preprocessor.cpp b/cpp/src/Slice/Preprocessor.cpp
index 00b58d9cd00..68f68c1c851 100755
--- a/cpp/src/Slice/Preprocessor.cpp
+++ b/cpp/src/Slice/Preprocessor.cpp
@@ -156,7 +156,7 @@ Slice::Preprocessor::preprocess(bool keepComments)
//
mcpp_use_mem_buffers(1);
mcpp_lib_main(static_cast<int>(args.size()) + 1, argv);
- delete argv;
+ delete[] argv;
//
// Write output to temporary file. Print errors to stderr.
@@ -214,7 +214,7 @@ Slice::Preprocessor::printMakefileDependencies(Language lang, const vector<strin
//
mcpp_use_mem_buffers(1);
mcpp_lib_main(static_cast<int>(args.size() + 1), argv);
- delete argv;
+ delete[] argv;
//
// Get mcpp output/errors.