diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-11-27 19:47:37 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-11-27 19:49:33 +0800 |
commit | cfcffbc8ff1a9e699ca1e8073b7bc3d10c399563 (patch) | |
tree | d32e9c2ed31bd7f2176ba52df45f150c974c1aea /test | |
parent | 25e353275fb55192fbd80c3bbe012df17e35a09f (diff) | |
download | petitboot-cfcffbc8ff1a9e699ca1e8073b7bc3d10c399563.zip petitboot-cfcffbc8ff1a9e699ca1e8073b7bc3d10c399563.tar.gz |
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 <jk@ozlabs.org>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions