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)
commitf3edc5dc86a2d819ae92998ccfc5ac507dbbc5b0
tree1420ae4156ba068c71d90a0263f88c3672415ecc
parent6cb1c617a70466c4d8acc67cb70254e5b8385f88
lib: use delete[] to free buffer allocated using new[]

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];
                       ^
lib/regexp-fields.cc