crypto: Fix use after free.

Reported by: AppChecker
Transformed to patch by: Satish Govindarajan
This commit is contained in:
AppChecker 2017-07-09 21:57:35 +02:00 committed by Vladimir Serbinenko
parent 284afab081
commit a0fe0c26aa
1 changed files with 1 additions and 1 deletions

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;