OSDN Git Service
(root)
/
android-x86
/
bionic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0005b35
)
bionic: fix deleting property arrays in property benchmark
author
Colin Cross
<ccross@android.com>
Tue, 18 Jun 2013 20:08:28 +0000
(13:08 -0700)
committer
Colin Cross
<ccross@android.com>
Tue, 18 Jun 2013 20:08:28 +0000
(13:08 -0700)
Use delete[] to delete arrays allocated with new []
Change-Id: Icc2a6b23df09049c008f7f1f50ed93a277174308
tests/property_benchmark.cpp
patch
|
blob
|
history
diff --git
a/tests/property_benchmark.cpp
b/tests/property_benchmark.cpp
index
5acd06c
..
2c8e2a1
100644
(file)
--- 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: