From 7d06813d93b3b3745d438c000f596a38cb0efeb4 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Tue, 18 Jun 2013 13:08:28 -0700 Subject: [PATCH] bionic: fix deleting property arrays in property benchmark Use delete[] to delete arrays allocated with new [] Change-Id: Icc2a6b23df09049c008f7f1f50ed93a277174308 --- tests/property_benchmark.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/property_benchmark.cpp b/tests/property_benchmark.cpp index 5acd06c72..2c8e2a115 100644 --- a/tests/property_benchmark.cpp +++ b/tests/property_benchmark.cpp @@ -62,10 +62,10 @@ struct LocalPropertyTestState { delete names[i]; delete values[i]; } - delete names; - delete name_lens; - delete values; - delete value_lens; + delete[] names; + delete[] name_lens; + delete[] values; + delete[] value_lens; free(pa); } public: -- 2.11.0