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

Commit becd89d1 authored by Nick Kralevich's avatar Nick Kralevich Committed by Gerrit Code Review
Browse files

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

parents b5c7ccfd 6329f019
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1626,7 +1626,7 @@ status_t Parcel::continueWrite(size_t desired)
        binder_size_t* objects = NULL;
        binder_size_t* objects = NULL;


        if (objectsSize) {
        if (objectsSize) {
            objects = (binder_size_t*)malloc(objectsSize*sizeof(binder_size_t));
            objects = (binder_size_t*)calloc(objectsSize, sizeof(binder_size_t));
            if (!objects) {
            if (!objects) {
                free(data);
                free(data);