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 names[i];
|
||||||
delete values[i];
|
delete values[i];
|
||||||
}
|
}
|
||||||
delete names;
|
delete[] names;
|
||||||
delete name_lens;
|
delete[] name_lens;
|
||||||
delete values;
|
delete[] values;
|
||||||
delete value_lens;
|
delete[] value_lens;
|
||||||
free(pa);
|
free(pa);
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in New Issue