Merge "Parcel.cpp: use calloc instead of malloc"

This commit is contained in:
Nick Kralevich 2015-04-29 04:16:23 +00:00 committed by Gerrit Code Review
commit becd89d185
1 changed files with 1 additions and 1 deletions

View File

@ -1626,7 +1626,7 @@ status_t Parcel::continueWrite(size_t desired)
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);