Close parser for incorrect manifests
parser.close() should be called in every case other than when the correct manifest is found and the open parser is returned. Change-Id: Ibbff0b08cc73b76902382ba607f71f8ae9de41a4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5372216 Reviewed-by: Richard (Torne) Coles <torne@chromium.org> Commit-Queue: Aashna Jena <aashnajena@google.com> Cr-Commit-Position: refs/heads/main@{#1272925}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
3d7924aa77
commit
e676e62b40
@ -189,8 +189,8 @@ public class ExclusionUtilities {
|
||||
}
|
||||
} catch (XmlPullParserException | IOException e) {
|
||||
// try next assetCookie
|
||||
parser.close();
|
||||
}
|
||||
parser.close();
|
||||
}
|
||||
// could not find manifest with correct package name
|
||||
return null;
|
||||
|
Reference in New Issue
Block a user