Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1c60f889 authored by Nick Kralevich's avatar Nick Kralevich Committed by Android Git Automerger
Browse files

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

* commit 'becd89d1':
  Parcel.cpp: use calloc instead of malloc
parents b078aef6 becd89d1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);