diff options
-rw-r--r-- | discover/grub2/env.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |