From 1624d0ffc660a04888dafe215a33f484d707c7ce Mon Sep 17 00:00:00 2001 From: 1337ninja <1337ninja@users.noreply.github.com> Date: Sun, 9 Jul 2017 18:38:15 +0530 Subject: [PATCH] Fix use after free --- grub-core/normal/crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grub-core/normal/crypto.c b/grub-core/normal/crypto.c index 2bfd67c8e..e6d345f33 100644 --- a/grub-core/normal/crypto.c +++ b/grub-core/normal/crypto.c @@ -147,8 +147,8 @@ read_crypto_list (const char *prefix) if (! cur->modname) { grub_errno = GRUB_ERR_NONE; - grub_free (cur); grub_free (cur->name); + grub_free (cur); continue; } cur->next = crypto_specs;