Merge pull request #47 from 1337ninja/dev

Fix use after free
This commit is contained in:
David Michael 2017-09-26 21:29:37 -07:00 committed by GitHub
commit 84a4fd2f4c

View file

@ -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;