X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fgrub2%2Fenv.c;h=1c8635fbc924427b880ab518ff3e3ba7664dc259;hp=c887c7511297c9829dab795c6cc9d84adce3401a;hb=ae3c354e844698bdb4ed35a6845aa9dca1e9205f;hpb=dd8fe077022138d1f6aca7e6d6cceec61f56ce95 diff --git a/discover/grub2/env.c b/discover/grub2/env.c index c887c75..1c8635f 100644 --- a/discover/grub2/env.c +++ b/discover/grub2/env.c @@ -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; }