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

Commit 6bbc79f2 authored by Elliott Hughes's avatar Elliott Hughes Committed by Android Git Automerger
Browse files

am f18eb323: am 767e1c01: am 9aac0c1b: Merge "fix potential memory leak"

* commit 'f18eb323':
  fix potential memory leak
parents 8a4e3fd2 f18eb323
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -5038,11 +5038,14 @@ status_t ResTable::parsePackage(const ResTable_package* const pkg,
        } else {
            group = mPackageGroups.itemAt(idx-1);
            if (group == NULL) {
                delete package;
                return (mError=UNKNOWN_ERROR);
            }
        }
        err = group->packages.add(package);
        if (err < NO_ERROR) {
            delete group;
            delete package;
            return (mError=err);
        }
    } else {