Merge "Explicitly discard released proto strings." am: 5df912d6f5 am: fac256f532 am: 1dfaa7569f am: c7f43f9796

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2231027

Change-Id: I6ac0c9926bbc265da342f7f8076b89a9c963018b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Krzysztof Kosiński
2022-09-28 07:45:45 +00:00
committed by Automerger Merge Worker

View File

@@ -1287,8 +1287,8 @@ int IncrementalService::addBindMount(IncFsMount& ifs, StorageId storage,
bp.set_allocated_dest_path(&target);
bp.set_allocated_source_subdir(&source);
const auto metadata = bp.SerializeAsString();
bp.release_dest_path();
bp.release_source_subdir();
static_cast<void>(bp.release_dest_path());
static_cast<void>(bp.release_source_subdir());
mdFileName = makeBindMdName();
metadataFullPath = path::join(ifs.root, constants().mount, mdFileName);
auto node = mIncFs->makeFile(ifs.control, metadataFullPath, 0444, idFromMetadata(metadata),