Fix use after free

This commit is contained in:
1337ninja 2017-07-09 18:38:15 +05:30
parent 6782f6d431
commit 1624d0ffc6

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;