]> git.cworth.org Git - notmuch/commitdiff
lib: use delete[] to free buffer allocated using new[]
authorJani Nikula <jani@nikula.org>
Sat, 4 Mar 2017 17:38:41 +0000 (19:38 +0200)
committerDavid Bremner <david@tethera.net>
Sun, 5 Mar 2017 00:42:39 +0000 (20:42 -0400)
Fix warning caught by clang:

lib/regexp-fields.cc:41:2: warning: 'delete' applied to a pointer that was allocated
      with 'new[]'; did you mean 'delete[]'? [-Wmismatched-new-delete]
        delete buffer;
        ^
              []
lib/regexp-fields.cc:37:17: note: allocated with 'new[]' here
        char *buffer = new char[len];
                       ^


No differences found