bionic: fix deleting property arrays in property benchmark
Use delete[] to delete arrays allocated with new [] Change-Id: Icc2a6b23df09049c008f7f1f50ed93a277174308
This commit is contained in:
parent
0005b3544b
commit
7d06813d93
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue