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

Commit 36045e57 authored by Nick Kralevich's avatar Nick Kralevich Committed by Android Git Automerger
Browse files

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

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