From: Jeremy Kerr Date: Wed, 27 Nov 2013 11:47:37 +0000 (+0800) Subject: discover/grub2: Use parser for a single parse X-Git-Tag: v1.0.0~301 X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=cfcffbc8ff1a9e699ca1e8073b7bc3d10c399563;hp=cfcffbc8ff1a9e699ca1e8073b7bc3d10c399563 discover/grub2: Use parser for a single parse Currently, we re-use a grub2 parser for different filenames, and will create one even if we find no matching files. This change only creates a parser if parser_request_file succeeds, and free() (and exits the parse) immediately after. Signed-off-by: Jeremy Kerr ---