[Concept] [PATCH 05/19] bootstd: Fix memory leak in bootflow scanning