X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=discover%2Fgrub2%2Fenv.c;h=1c8635fbc924427b880ab518ff3e3ba7664dc259;hb=a574a72dcfea1bb61714754eca5612dde3632f0e;hp=c887c7511297c9829dab795c6cc9d84adce3401a;hpb=dd8fe077022138d1f6aca7e6d6cceec61f56ce95;p=petitboot 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; }