diff --git a/src/Type.cc b/src/Type.cc index 6c8035ca31..5f8358399a 100644 --- a/src/Type.cc +++ b/src/Type.cc @@ -1322,7 +1322,7 @@ void CommentedEnumType::AddComment(const string& module_name, const char* name, { comments[fullname.c_str()]->splice(comments[fullname.c_str()]->end(), *new_comments); - delete [] new_comments; + delete new_comments; } }