discover/grub2: Use parser for a single parse
authorJeremy Kerr <jk@ozlabs.org>
Wed, 27 Nov 2013 11:47:37 +0000 (19:47 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Wed, 27 Nov 2013 11:49:33 +0000 (19:49 +0800)
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 <jk@ozlabs.org>

No differences found