diff options
| author | Jani Nikula <jani@nikula.org> | 2017-03-04 19:38:41 +0200 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2017-03-04 20:42:39 -0400 |
| commit | f3edc5dc86a2d819ae92998ccfc5ac507dbbc5b0 (patch) | |
| tree | 1420ae4156ba068c71d90a0263f88c3672415ecc /bindings/python/docs/Makefile | |
| parent | 6cb1c617a70466c4d8acc67cb70254e5b8385f88 (diff) | |
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];
^
Diffstat (limited to 'bindings/python/docs/Makefile')
0 files changed, 0 insertions, 0 deletions
