Fix use after free

This commit is contained in:
1337ninja 2017-07-09 18:38:15 +05:30 committed by David Michael
parent 3626296357
commit fefd7d6acf
1 changed files with 1 additions and 1 deletions

View File

@ -147,8 +147,8 @@ read_crypto_list (const char *prefix)
if (! cur->modname) if (! cur->modname)
{ {
grub_errno = GRUB_ERR_NONE; grub_errno = GRUB_ERR_NONE;
grub_free (cur);
grub_free (cur->name); grub_free (cur->name);
grub_free (cur);
continue; continue;
} }
cur->next = crypto_specs; cur->next = crypto_specs;