diff --git a/lib/regexp-fields.cc b/lib/regexp-fields.cc index 9873af80..b4174750 100644 --- a/lib/regexp-fields.cc +++ b/lib/regexp-fields.cc @@ -38,7 +38,7 @@ compile_regex (regex_t ®exp, const char *str) std::string msg; (void) regerror (err, ®exp, buffer, len); msg.assign (buffer, len); - delete buffer; + delete[] buffer; throw Xapian::QueryParserError (msg); }