discover/grub2: Fix free in load_env command
authorJeremy Kerr <jk@ozlabs.org>
Wed, 27 Nov 2013 11:43:25 +0000 (19:43 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Wed, 27 Nov 2013 11:43:25 +0000 (19:43 +0800)
commit25e353275fb55192fbd80c3bbe012df17e35a09f
tree68fe005366215c9fff4f416fd6ccc0102decb63a
parent493338c7ce825632dbfeec780a5b5f7be8cb8ec5
discover/grub2: Fix free in load_env command

We only need to free the buf if parser_request_file returned success.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
discover/grub2/env.c