commit | becd89d185e53eb9ba3ddc24342e0f229dde6175 | [log] [tgz] |
---|---|---|
author | Nick Kralevich <nnk@google.com> | Wed Apr 29 04:16:23 2015 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed Apr 29 04:16:23 2015 +0000 |
tree | ab69a88e2b84c9fa0dbe3befcc5ad35193d0c17c | |
parent | b5c7ccfdc7eb5b0ab8d22084000e9c39092ccd0e [diff] | |
parent | 6329f0199ed04030e6c2bd7aecd036387b732c71 [diff] |
Merge "Parcel.cpp: use calloc instead of malloc"
diff --git a/libs/binder/Parcel.cpp b/libs/binder/Parcel.cpp index 2c566f9..0921186 100644 --- a/libs/binder/Parcel.cpp +++ b/libs/binder/Parcel.cpp
@@ -1626,7 +1626,7 @@ binder_size_t* objects = NULL; if (objectsSize) { - objects = (binder_size_t*)malloc(objectsSize*sizeof(binder_size_t)); + objects = (binder_size_t*)calloc(objectsSize, sizeof(binder_size_t)); if (!objects) { free(data);