From: Colin Cross Date: Tue, 18 Jun 2013 20:08:28 +0000 (-0700) Subject: bionic: fix deleting property arrays in property benchmark X-Git-Tag: android-x86-4.4-r1~19^2~72^2^2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=7d06813d93b3b3745d438c000f596a38cb0efeb4;p=android-x86%2Fbionic.git bionic: fix deleting property arrays in property benchmark Use delete[] to delete arrays allocated with new [] Change-Id: Icc2a6b23df09049c008f7f1f50ed93a277174308 --- 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: