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

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

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

* commit '767e1c01':
  fix potential memory leak
parents c41db6c9 767e1c01
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 {