X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=discover%2Fgrub2%2Fenv.c;h=1c8635fbc924427b880ab518ff3e3ba7664dc259;hb=d239d484e3d34da52024f6e97e7046774d7b299d;hp=90e9c69667abe47db82ee324c3f52052bba99648;hpb=ccacb83a030da564c59c8e0f081fe967fba5a3eb;p=petitboot diff --git a/discover/grub2/env.c b/discover/grub2/env.c index 90e9c69..1c8635f 100644 --- a/discover/grub2/env.c +++ b/discover/grub2/env.c @@ -5,7 +5,7 @@ #include #include #include -#include +#include #include #include @@ -84,10 +84,10 @@ int builtin_load_env(struct grub2_script *script, rc = parser_request_file(script->ctx, dev, envpath, &buf, &len); - if (!rc) + if (!rc) { rc = parse_buf_to_env(script, buf, len); - - talloc_free(buf); + talloc_free(buf); + } return 0; }