OSDN Git Service

Use delete[] to de-allocate pointers from new[]
authorPirama Arumuga Nainar <pirama@google.com>
Thu, 9 Jul 2015 17:15:15 +0000 (10:15 -0700)
committerPirama Arumuga Nainar <pirama@google.com>
Thu, 9 Jul 2015 17:15:15 +0000 (10:15 -0700)
commit4d44675283e6c92d3294592be4fce7c9d89c19b6
tree8f579e86be057eba09185e7b5ebe91739c78008a
parent90de6820f736de1239b218ea2b63d15c38505e93
Use delete[] to de-allocate pointers from new[]

Upstream clang has a new diagnostic, '-Wmismatched-new-delete' to
generate a warning (that becomes an error with -Werror) when delete is
used to deallocate pointers created with 'new[]'.  This patch fixes
'delete's that trigger this warning/error.

Change-Id: Id7b6f6c2df3e860e576de55e2f61f3d2be3a3986
tests/buffer_tests.cpp